[SCM] libav/experimental: Clean after toggling wave. Fixes issue1180.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:59:23 UTC 2013
The following commit has been merged in the experimental branch:
commit f5968788bb3692f2fd503bb2ec1526b0369c7f92
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Wed Feb 3 23:34:06 2010 +0000
Clean after toggling wave.
Fixes issue1180.
Originally committed as revision 21632 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffplay.c b/ffplay.c
index bf4f733..7be73b0 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -2306,7 +2306,12 @@ static void do_exit(void)
static void toggle_audio_display(void)
{
if (cur_stream) {
+ int bgcolor = SDL_MapRGB(screen->format, 0x00, 0x00, 0x00);
cur_stream->show_audio = !cur_stream->show_audio;
+ fill_rectangle(screen,
+ cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height,
+ bgcolor);
+ SDL_UpdateRect(screen, cur_stream->xleft, cur_stream->ytop, cur_stream->width, cur_stream->height);
}
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list