Commit 2b12cd63 authored by Ilkka Ollakka's avatar Ilkka Ollakka

transcode: add mention if it's audio or video that has too high drift

parent 7fbedf14
...@@ -208,7 +208,7 @@ int transcode_audio_process( sout_stream_t *p_stream, ...@@ -208,7 +208,7 @@ int transcode_audio_process( sout_stream_t *p_stream,
if (i_drift > MASTER_SYNC_MAX_DRIFT || i_drift < -MASTER_SYNC_MAX_DRIFT) if (i_drift > MASTER_SYNC_MAX_DRIFT || i_drift < -MASTER_SYNC_MAX_DRIFT)
{ {
msg_Dbg( p_stream, msg_Dbg( p_stream,
"drift is too high (%"PRId64"), resetting master sync", "audio drift is too high (%"PRId64"), resetting master sync",
i_drift ); i_drift );
date_Set( &id->interpolated_pts, p_audio_buf->i_pts ); date_Set( &id->interpolated_pts, p_audio_buf->i_pts );
i_pts = p_audio_buf->i_pts + 1; i_pts = p_audio_buf->i_pts + 1;
......
...@@ -664,7 +664,7 @@ static void OutputFrame( sout_stream_sys_t *p_sys, picture_t *p_pic, bool b_need ...@@ -664,7 +664,7 @@ static void OutputFrame( sout_stream_sys_t *p_sys, picture_t *p_pic, bool b_need
|| i_video_drift < -MASTER_SYNC_MAX_DRIFT ) ) || i_video_drift < -MASTER_SYNC_MAX_DRIFT ) )
{ {
msg_Dbg( p_stream, msg_Dbg( p_stream,
"drift is too high (%"PRId64"), resetting master sync", "video drift is too high (%"PRId64"), resetting master sync",
i_video_drift ); i_video_drift );
date_Set( &id->interpolated_pts, p_pic->date ); date_Set( &id->interpolated_pts, p_pic->date );
i_pts = p_pic->date + 1; i_pts = p_pic->date + 1;
...@@ -765,7 +765,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id, ...@@ -765,7 +765,7 @@ int transcode_video_process( sout_stream_t *p_stream, sout_stream_id_t *id,
|| i_video_drift < -MASTER_SYNC_MAX_DRIFT ) ) || i_video_drift < -MASTER_SYNC_MAX_DRIFT ) )
{ {
msg_Dbg( p_stream, msg_Dbg( p_stream,
"drift is too high (%"PRId64", resetting master sync", "video drift is too high (%"PRId64", resetting master sync",
i_video_drift ); i_video_drift );
date_Set( &id->interpolated_pts, p_pic->date ); date_Set( &id->interpolated_pts, p_pic->date );
i_pts = p_pic->date + 1; i_pts = p_pic->date + 1;
......
Markdown is supported
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