changeset 34075:b9cab6c0992c

Restrict use of STREAMTYPE_STREAM in Win32 GUI. Use it only for URLs and prefer STREAMTYPE_FILE otherwise.
author ib
date Fri, 30 Sep 2011 14:38:56 +0000
parents 360ed500a6e9
children 6a0bda5e63ac
files gui/win32/dialogs.c gui/win32/interface.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/dialogs.c	Fri Sep 30 14:33:13 2011 +0000
+++ b/gui/win32/dialogs.c	Fri Sep 30 14:38:56 2011 +0000
@@ -523,7 +523,7 @@
                     {
                 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;
--- a/gui/win32/interface.c	Fri Sep 30 14:33:13 2011 +0000
+++ b/gui/win32/interface.c	Fri Sep 30 14:38:56 2011 +0000
@@ -304,7 +304,7 @@
             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 @@
             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 @@
 
               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);
           }