[vlc-devel] [PATCH] HLS: minor fix

Frédéric Yhuel fyhuel at viotech.net
Tue Jun 19 16:56:30 CEST 2012


It seems to me it makes more sense like that.
---
 modules/stream_filter/httplive.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 5758189..2c0d603 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -2180,13 +2180,13 @@ static ssize_t hls_Read(stream_t *s, uint8_t *p_read, unsigned int i_read)
             else
                 segment_RestorePos(segment);
 
-            p_sys->playback.segment++;
             vlc_mutex_unlock(&segment->lock);
 
             /* signal download thread */
             vlc_mutex_lock(&p_sys->download.lock_wait);
-            vlc_cond_signal(&p_sys->download.wait);
+            p_sys->playback.segment++;
             vlc_mutex_unlock(&p_sys->download.lock_wait);
+            vlc_cond_signal(&p_sys->download.wait);
             continue;
         }
 
-- 
1.7.9.5




More information about the vlc-devel mailing list