diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-02-03 23:34:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-02-03 23:34:06 +0000 |
commit | f5968788bb3692f2fd503bb2ec1526b0369c7f92 (patch) | |
tree | b40716ec233c468362332d5c06184ddd57d2d156 /ffplay.c | |
parent | ef9f8dd7305e39f5579b33abeec425c11f4f1b6d (diff) | |
download | ffmpeg-f5968788bb3692f2fd503bb2ec1526b0369c7f92.tar.gz |
Clean after toggling wave.
Fixes issue1180.
Originally committed as revision 21632 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } } |