[vlc-commits] access_output:udp: keep the last date early

Steve Lhomme git at videolan.org
Wed Sep 19 11:58:07 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Sep 19 10:28:35 2018 +0200| [b3f0f92214b813f2b394da1353b96929483fd41d] | committer: Steve Lhomme

access_output:udp: keep the last date early

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

 modules/access_output/udp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/access_output/udp.c b/modules/access_output/udp.c
index cc53156ae9..f47bcaba5a 100644
--- a/modules/access_output/udp.c
+++ b/modules/access_output/udp.c
@@ -404,6 +404,8 @@ static void* ThreadWrite( void *data )
             i_dropped_packets = 0;
         }
 
+        i_date_last = i_date;
+
 #if 1
         i_sent = vlc_tick_now();
         if ( i_sent > i_date + VLC_TICK_FROM_MS(20) )
@@ -415,7 +417,6 @@ static void* ThreadWrite( void *data )
 
         block_Release( p_pk );
 
-        i_date_last = i_date;
     }
     return NULL;
 }



More information about the vlc-commits mailing list