Re: [MPlayer-dev-eng] [PATCH v2 5/5] stream_pvr: allow initial latency when opening stream
- Date: Wed, 10 Feb 2016 22:33:48 +0100
- From: Reimar Döffinger <Reimar.Doeffinger@xxxxxx>
- Subject: Re: [MPlayer-dev-eng] [PATCH v2 5/5] stream_pvr: allow initial latency when opening stream
On Wed, Feb 10, 2016 at 10:19:52AM -0600, Reza Arbab wrote:
> static void
> @@ -1610,7 +1630,7 @@ pvr_stream_close (stream_t *stream)
> static int
> pvr_stream_read (stream_t *stream, char *buffer, int size)
> - struct pollfd pfds;
> + static int first = 1;
Sorry that is not what I meant.
It is a bit made-up example, but with this if you
mplayer pvr:// pvr://
and switch from the first to the second it will
not wait for the timeout as it is a static variable.
This might even be somewhat realistic
if you specify different devices for the first and the second.
What I instead meant is that you should put such a variable
into the "struct pvr_t" and initialize it to 1 in pvr_init,
and check pvr->first then.
MPlayer-dev-eng mailing list