[MPlayer-dev-eng] [PATCH v2 5/5] stream_pvr: allow initial latency when opening stream
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Wed Feb 10 22:33:48 CET 2016
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[1];
> + static int first = 1;
Sorry that is not what I meant.
It is a bit made-up example, but with this if you
do
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.
More information about the MPlayer-dev-eng
mailing list