summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-12-20 20:44:39 +0100
committerMarton Balint <cus@passwd.hu>2015-01-01 14:38:12 +0100
commit46aa75eea1bd68c0e1224ef9ce640b05818572f9 (patch)
tree64175d161bb79783a6fffc97248b00d9fe3c28be /ffplay.c
parent5e7dcb0491cc9c6d8c6f964605fadcbb10831ff9 (diff)
ffplay: dump format before selecting streams
This helps the user to see the available streams just before the error message if the stream specifiers do not match. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ffplay.c b/ffplay.c
index 655af6ddaa..72ec35dbf4 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2959,6 +2959,9 @@ static int read_thread(void *arg)
is->realtime = is_realtime(ic);
+ if (show_status)
+ av_dump_format(ic, 0, is->filename, 0);
+
for (i = 0; i < ic->nb_streams; i++) {
AVStream *st = ic->streams[i];
enum AVMediaType type = st->codec->codec_type;
@@ -2992,9 +2995,6 @@ static int read_thread(void *arg)
st_index[AVMEDIA_TYPE_AUDIO] :
st_index[AVMEDIA_TYPE_VIDEO]),
NULL, 0);
- if (show_status) {
- av_dump_format(ic, 0, is->filename, 0);
- }
is->show_mode = show_mode;
if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {