mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-08 11:26:59 +02:00
es_out: log the active clock source
This commit is contained in:
parent
88ad68a961
commit
03ec78a0a3
@ -1341,6 +1341,21 @@ static void EsOutProgramHandleClockSource( es_out_t *out, es_out_pgrm_t *p_pgrm
|
||||
p_pgrm->active_clock_source = p_sys->user_clock_source;
|
||||
break;
|
||||
}
|
||||
|
||||
const char *clock_source_str;
|
||||
switch( p_pgrm->active_clock_source )
|
||||
{
|
||||
case VLC_CLOCK_MASTER_AUDIO: clock_source_str = "audio"; break;
|
||||
case VLC_CLOCK_MASTER_INPUT: clock_source_str = "input"; break;
|
||||
case VLC_CLOCK_MASTER_MONOTONIC:clock_source_str = "monotonic"; break;
|
||||
|
||||
case VLC_CLOCK_MASTER_AUTO:
|
||||
default:
|
||||
vlc_assert_unreachable();
|
||||
}
|
||||
|
||||
msg_Dbg( p_input, "program(%d): using clock source: '%s'\n",
|
||||
p_pgrm->i_id, clock_source_str );
|
||||
}
|
||||
|
||||
/* EsOutIsGroupSticky
|
||||
|
Loading…
Reference in New Issue
Block a user