projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
114a93c
)
Do not call SDL_SetVideoMode() with the same size as previously
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Mar 2010 15:39:31 +0000
(15:39 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 10 Mar 2010 15:39:31 +0000
(15:39 +0000)
as this blanks the window.
Originally committed as revision 22433 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffplay.c
patch
|
blob
|
history
diff --git
a/ffplay.c
b/ffplay.c
index
bfe10be
..
fb99d9a
100644
(file)
--- a/
ffplay.c
+++ b/
ffplay.c
@@
-965,6
+965,10
@@
static int video_open(VideoState *is){
w = 640;
h = 480;
}
+ if(screen && is->width == screen->w && screen->w == w
+ && is->height== screen->h && screen->h == h)
+ return 0;
+
#ifndef __APPLE__
screen = SDL_SetVideoMode(w, h, 0, flags);
#else