[vlc-devel] [PATCH 14/48] hls: Don't storm windows with cond signal

Jean-Paul Saman jpsaman at videolan.org
Tue Jan 10 13:24:19 CET 2012


Not sure this is correct.

Kind regards,
Jean-Paul Saman

On Mon, Jan 9, 2012 at 4:16 PM, Hugo Beauzée-Luyssen <beauze.h at gmail.com> wrote:
> From: Luc Saillard <luc.saillard at sfr.com>
>
> ---
>  modules/stream_filter/httplive.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
> index 931ff96..1039bbc 100644
> --- a/modules/stream_filter/httplive.c
> +++ b/modules/stream_filter/httplive.c
> @@ -1417,6 +1417,10 @@ static int hls_ReloadPlaylist(stream_t *s)
>
>     vlc_array_destroy(hls_streams);
>
> +    vlc_mutex_lock(&p_sys->download.lock_wait);
> +    vlc_cond_signal(&p_sys->download.wait);
> +    vlc_mutex_unlock(&p_sys->download.lock_wait);
> +
>     return VLC_SUCCESS;
>
>  fail:
> @@ -1630,7 +1634,6 @@ static void* hls_Thread(void *p_this)
>         }
>         else if (p_sys->download.segment < count)
>             p_sys->download.segment++;
> -        vlc_cond_signal(&p_sys->download.wait);
>         vlc_mutex_unlock(&p_sys->download.lock_wait);
>     }
>
> --
> 1.7.8.3
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list