[vlc-commits] demux: asf: use send_time as preroll

Francois Cartegnie git at videolan.org
Thu May 15 20:39:33 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu May 15 20:11:52 2014 +0200| [c62a68c5806b5c41504f591978ef8859ee072b54] | committer: Francois Cartegnie

demux: asf: use send_time as preroll

Otherwise would buffer a preroll + min track delay

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

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

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 6032fca..6ee89ff 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -801,7 +801,7 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
         goto skip;
     }
 
-    bool b_preroll_done = ( i_base_pts > p_sys->i_preroll_start/1000 );
+    bool b_preroll_done = ( pkt->send_time > p_sys->i_preroll_start/1000 );
 
     if (i_base_pts < 0) i_base_pts = 0; // FIXME?
     i_base_pts *= 1000;



More information about the vlc-commits mailing list