Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2012-12-26 03:06:19 +0400
committerMarton Balint <cus@passwd.hu>2012-12-28 23:01:01 +0400
commitec89ea30225780fedf702d7e8740fbf92418112c (patch)
tree557b1b4a040408ffb25a152a4f730e73cc0ece1a /ffplay.c
parentef7f3b08703f334768f61c2c5817b6e42c05c08a (diff)
ffplay: always display audio visualization if mode is set
Fixes ticket #1903. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/ffplay.c b/ffplay.c
index caba6d7e9b..c8dbda58a5 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1296,6 +1296,9 @@ static void video_refresh(void *opaque)
if (!is->paused && get_master_sync_type(is) == AV_SYNC_EXTERNAL_CLOCK && is->realtime)
check_external_clock_speed(is);
+ if (!display_disable && is->show_mode != SHOW_MODE_VIDEO && is->audio_st)
+ video_display(is);
+
if (is->video_st) {
if (is->force_refresh)
pictq_prev_picture(is);
@@ -1396,7 +1399,7 @@ retry:
display:
/* display picture */
- if (!display_disable)
+ if (!display_disable && is->show_mode == SHOW_MODE_VIDEO)
video_display(is);
pictq_next_picture(is);
@@ -1404,15 +1407,6 @@ display:
if (is->step && !is->paused)
stream_toggle_pause(is);
}
- } else if (is->audio_st) {
- /* draw the next audio frame */
-
- /* if only audio stream, then display the audio bars (better
- than nothing, just to test the implementation */
-
- /* display picture */
- if (!display_disable)
- video_display(is);
}
is->force_refresh = 0;
if (show_status) {