[FFmpeg-cvslog] r21632 - trunk/ffplay.c
michael
subversion
Thu Feb 4 00:34:06 CET 2010
Author: michael
Date: Thu Feb 4 00:34:06 2010
New Revision: 21632
Log:
Clean after togling wave.
Fixes issue1180.
Modified:
trunk/ffplay.c
Modified: trunk/ffplay.c
==============================================================================
--- trunk/ffplay.c Thu Feb 4 00:10:18 2010 (r21631)
+++ trunk/ffplay.c Thu Feb 4 00:34:06 2010 (r21632)
@@ -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);
}
}
More information about the ffmpeg-cvslog
mailing list