[vlc-commits] ts: do not call stream_Size two times

Rémi Duraffort git at videolan.org
Thu Jan 2 09:27:52 CET 2014


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Jan  1 19:06:47 2014 +0100| [c9f630198d07bafcd83927360149b47059b66ec8] | committer: Rémi Duraffort

ts: do not call stream_Size two times

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

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

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index ade6ab7..5304502 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2021,7 +2021,7 @@ static int Seek( demux_t *p_demux, double f_percent )
     mtime_t i_target_pcr = (p_sys->i_last_pcr - p_sys->i_first_pcr) * f_percent + p_sys->i_first_pcr;
 
     int64_t i_head_pos = 0;
-    int64_t i_tail_pos = stream_Size( p_demux->s );
+    int64_t i_tail_pos;
     {
         mtime_t i_adjust = 0;
         int i;



More information about the vlc-commits mailing list