[vlc-commits] httplive: add likely

Ilkka Ollakka git at videolan.org
Sun Aug 18 21:43:45 CEST 2013


vlc/vlc-2.1 | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Aug 16 00:05:55 2013 +0300| [46e7f5546799e14d533665ab17dd921a8d11ed6e] | committer: Jean-Baptiste Kempf

httplive: add likely

(cherry picked from commit 04d173cc73fc63b18d930f8874846f955f35b934)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=46e7f5546799e14d533665ab17dd921a8d11ed6e
---

 modules/stream_filter/httplive.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 62f1a2a..0512516 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -2297,7 +2297,7 @@ static int Peek(stream_t *s, const uint8_t **pp_peek, unsigned int i_peek)
     size_t i_buff = segment->data->i_buffer;
     uint8_t *p_buff = segment->data->p_buffer;
 
-    if (i_peek < i_buff)
+    if ( likely(i_peek < i_buff))
     {
         *pp_peek = p_buff;
         vlc_mutex_unlock(&segment->lock);



More information about the vlc-commits mailing list