Browse code

ffplay: display information on stream cycling

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/03/11 09:20:18
Showing 1 changed files
... ...
@@ -3120,6 +3120,11 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
3120 3120
  the_end:
3121 3121
     if (p && stream_index != -1)
3122 3122
         stream_index = p->stream_index[stream_index];
3123
+    av_log(NULL, AV_LOG_INFO, "Switch %s stream from #%d to #%d\n",
3124
+           av_get_media_type_string(codec_type),
3125
+           old_index,
3126
+           stream_index);
3127
+
3123 3128
     stream_component_close(is, old_index);
3124 3129
     stream_component_open(is, stream_index);
3125 3130
 }