vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Fri May 16 
13:59:26 2014 +0200| [cdcd6c9a8b40d5e7cf7f2763186884757ceb2b65] | committer: 
Francois Cartegnie

demux: asf: fix preroll deadline

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

 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 6ee89ff..9e63a44 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 = ( pkt->send_time > p_sys->i_preroll_start/1000 );
+    bool b_preroll_done = ( pkt->send_time > (p_sys->i_preroll_start/1000 + 
p_sys->p_fp->i_preroll) );
 
     if (i_base_pts < 0) i_base_pts = 0; // FIXME?
     i_base_pts *= 1000;

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to