mirror of
https://github.com/mpv-player/mpv
synced 2025-03-06 14:17:46 +00:00
Fix multifile playback (sdl was not fully reinitialized).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4529 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2b819b72c8
commit
15daf31f0b
@ -329,9 +329,9 @@ static int sdl_open (void *plugin, void *name)
|
||||
const SDL_VideoInfo *vidInfo = NULL;
|
||||
static int opened = 0;
|
||||
|
||||
if (opened)
|
||||
/*if (opened)
|
||||
return 0;
|
||||
opened = 1;
|
||||
opened = 1;*/
|
||||
|
||||
if(verbose > 2) printf("SDL: Opening Plugin\n");
|
||||
|
||||
@ -560,7 +560,7 @@ static void set_fullmode (int mode) {
|
||||
/* if we haven't set a fullmode yet, default to the lowest res fullmode first */
|
||||
/* But select a mode where the full video enter */
|
||||
if (mode < 0) {
|
||||
int i;
|
||||
int i = 0;
|
||||
mode = 0; // Default to the biggest mode avaible
|
||||
for(i = findArrayEnd(priv->fullmodes) - 1; i >=0; i--) {
|
||||
if( (priv->fullmodes[i]->w >= priv->width) &&
|
||||
|
Loading…
Reference in New Issue
Block a user