[vlc-devel] commit: Fixed time/position report when using sout. (Laurent Aimar )

git version control git at videolan.org
Sat Dec 12 19:24:50 CET 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Dec 12 19:11:17 2009 +0100| [04590f5e207693993cadeb378caeb3b48199bf40] | committer: Laurent Aimar 

Fixed time/position report when using sout.

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

 src/input/es_out.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/input/es_out.c b/src/input/es_out.c
index e5a9793..99b6059 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2525,8 +2525,13 @@ static int EsOutControlLocked( es_out_t *out, int i_query, va_list args )
 
             if( !p_sys->b_buffering )
             {
+                mtime_t i_delay;
+
                 /* Fix for buffering delay */
-                const mtime_t i_delay = EsOutGetBuffering( out );
+                if( !out->b_sout || !p_sys->p_input->p->b_out_pace_control )
+                    i_delay = EsOutGetBuffering( out );
+                else
+                    i_delay = 0;
 
                 i_time -= i_delay;
                 if( i_time < 0 )




More information about the vlc-devel mailing list