[vlc-devel] [PATCH] HLS: don't signal dl thread out of the blue in Close()
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Jun 25 18:59:04 CEST 2012
On Mon, Jun 25, 2012 at 10:48 AM, Frederic YHUEL <fyhuel at viotech.net> wrote:
> On Tue, Jun 19, 2012 at 4:17 PM, Frédéric Yhuel <fyhuel at viotech.net> wrote:
>> ---
>> modules/stream_filter/httplive.c | 5 ++++-
>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
>> index 5b15bab..5758189 100644
>> --- a/modules/stream_filter/httplive.c
>> +++ b/modules/stream_filter/httplive.c
>> @@ -2000,8 +2000,11 @@ static void Close(vlc_object_t *p_this)
>>
>> /* */
>> vlc_mutex_lock(&p_sys->download.lock_wait);
>> - vlc_cond_signal(&p_sys->download.wait);
>> + /* negate the condition variable's predicate */
>> + p_sys->download.segment = p_sys->playback.segment = 0;
>> + p_sys->download.seek = 0; /* better safe than sorry */
>> vlc_mutex_unlock(&p_sys->download.lock_wait);
>> + vlc_cond_signal(&p_sys->download.wait);
>>
>> /* */
>> if (p_sys->b_live)
>> --
>
> No?
>
>
> Best regards
> Frédéric
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
Hello,
The patch looks good to me, I have some other stuff to review but I'll
push it :)
Regards,
--
Hugo Beauzée-Luyssen
mail: hugo at beauzee.fr
skype: beauze.h
More information about the vlc-devel
mailing list