You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffplay: display information on stream cycling
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
5
ffplay.c
5
ffplay.c
@@ -3120,6 +3120,11 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
|
|||||||
the_end:
|
the_end:
|
||||||
if (p && stream_index != -1)
|
if (p && stream_index != -1)
|
||||||
stream_index = p->stream_index[stream_index];
|
stream_index = p->stream_index[stream_index];
|
||||||
|
av_log(NULL, AV_LOG_INFO, "Switch %s stream from #%d to #%d\n",
|
||||||
|
av_get_media_type_string(codec_type),
|
||||||
|
old_index,
|
||||||
|
stream_index);
|
||||||
|
|
||||||
stream_component_close(is, old_index);
|
stream_component_close(is, old_index);
|
||||||
stream_component_open(is, stream_index);
|
stream_component_open(is, stream_index);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user