[FFmpeg-cvslog] ffplay: display information on stream cycling

Michael Niedermayer git at videolan.org
Wed Mar 12 00:58:37 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Mar 11 01:20:18 2014 +0100| [774668763a4c1acccb605e8926759207c0c8ccef] | committer: Michael Niedermayer

ffplay: display information on stream cycling

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=774668763a4c1acccb605e8926759207c0c8ccef
---

 ffplay.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ffplay.c b/ffplay.c
index ed7f180..c86f94f 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -3120,6 +3120,11 @@ static void stream_cycle_channel(VideoState *is, int codec_type)
  the_end:
     if (p && stream_index != -1)
         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_open(is, stream_index);
 }



More information about the ffmpeg-cvslog mailing list