[vlc-commits] commit: Improved video-splitter changes by seeking back to try to resynch on I frames . (Laurent Aimar )

git at videolan.org git at videolan.org
Mon Oct 25 20:41:55 CEST 2010


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Oct 23 23:20:07 2010 +0200| [4cebdb5ba995446802f2b0ba9ce093d70d3da34b] | committer: Laurent Aimar 

Improved video-splitter changes by seeking back to try to resynch on I frames.

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

 src/playlist/engine.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 7fa6aa3..382caf4 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -140,7 +140,11 @@ static int VideoSplitterCallback( vlc_object_t *p_this, char const *psz_cmd,
     /* Force the input to restart the video ES to force a vout recreation */
     input_thread_t *p_input = pl_priv( p_playlist )->p_input;
     if( p_input )
+    {
+        const double f_position = var_GetFloat( p_input, "position" );
         input_Control( p_input, INPUT_RESTART_ES, -VIDEO_ES );
+        var_SetFloat( p_input, "position", f_position );
+    }
 
     PL_UNLOCK;
     return VLC_SUCCESS;



More information about the vlc-commits mailing list