[vlc-commits] Clarify code path (help static analyzers).

Rémi Duraffort git at videolan.org
Sun Apr 3 11:34:05 CEST 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Apr  3 11:10:44 2011 +0200| [0f6a4c5d4daf4a7643fcf80fc4edd005bbc3fdb1] | committer: Rémi Duraffort

Clarify code path (help static analyzers).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0f6a4c5d4daf4a7643fcf80fc4edd005bbc3fdb1
---

 modules/stream_out/rtp.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 4d1648a..f6111e8 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -1402,11 +1402,14 @@ static void* ThreadSend( void *data )
                 out->i_buffer = len;
         }
         if (out)
-#endif
             mwait (out->i_dts + i_caching);
         vlc_cleanup_pop ();
         if (out == NULL)
             continue;
+#else
+        mwait (out->i_dts + i_caching);
+        vlc_cleanup_pop ();
+#endif
 
         ssize_t len = out->i_buffer;
         int canc = vlc_savecancel ();



More information about the vlc-commits mailing list