[MPlayer-cvslog] r34163 - in trunk/gui/win32: dialogs.c interface.c
ib
subversion at mplayerhq.hu
Fri Sep 30 16:38:56 CEST 2011
Author: ib
Date: Fri Sep 30 16:38:56 2011
New Revision: 34163
Log:
Restrict use of STREAMTYPE_STREAM in Win32 GUI.
Use it only for URLs and prefer STREAMTYPE_FILE otherwise.
Modified:
trunk/gui/win32/dialogs.c
trunk/gui/win32/interface.c
Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c Fri Sep 30 16:33:13 2011 (r34162)
+++ trunk/gui/win32/dialogs.c Fri Sep 30 16:38:56 2011 (r34163)
@@ -523,7 +523,7 @@ static LRESULT CALLBACK PlayListWndProc(
{
case ID_PLAY:
if(selected) pl->current = selected - 1;
- uiSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_STREAM);
+ uiSetFileName(NULL, pl->tracks[pl->current]->filename, STREAMTYPE_FILE);
gui->startplay(gui);
}
return 0;
Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c Fri Sep 30 16:33:13 2011 (r34162)
+++ trunk/gui/win32/interface.c Fri Sep 30 16:38:56 2011 (r34163)
@@ -304,7 +304,7 @@ void uiNext(void)
if(mygui->playlist->current == (mygui->playlist->trackcount - 1))
return;
uiSetFileName(NULL, mygui->playlist->tracks[(mygui->playlist->current)++]->filename,
- STREAMTYPE_STREAM);
+ STREAMTYPE_FILE);
break;
}
mygui->startplay(mygui);
@@ -326,7 +326,7 @@ void uiPrev(void)
if(mygui->playlist->current == 0)
return;
uiSetFileName(NULL, mygui->playlist->tracks[(mygui->playlist->current)--]->filename,
- STREAMTYPE_STREAM);
+ STREAMTYPE_FILE);
break;
}
mygui->startplay(mygui);
@@ -651,7 +651,7 @@ int gui(int what, void *data)
uiGotoTheNext = 1;
guiInfo.NewPlay = GUI_FILE_NEW;
- uiSetFileName(NULL, mygui->playlist->tracks[(mygui->playlist->current)++]->filename, STREAMTYPE_STREAM);
+ uiSetFileName(NULL, mygui->playlist->tracks[(mygui->playlist->current)++]->filename, STREAMTYPE_FILE);
//sprintf(guiInfo.Filename, mygui->playlist->tracks[(mygui->playlist->current)++]->filename);
}
More information about the MPlayer-cvslog
mailing list