Re: [PATCH v2 5/5] stream_pvr: allow initial latency when opening stream

Reimar Döffinger <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
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.
_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.