Commit 4cebdb5b authored by Laurent Aimar's avatar Laurent Aimar
Browse files

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

parent 84d2f956
......@@ -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 );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment