changeset 8380:743fa83d9e2d

need this
author pontscho
date Thu, 05 Dec 2002 23:54:15 +0000
parents 9ecd9081712b
children 212b54e0d10f
files Gui/app.h Gui/mplayer/mw.c
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/app.h	Thu Dec 05 23:40:42 2002 +0000
+++ b/Gui/app.h	Thu Dec 05 23:54:15 2002 +0000
@@ -58,7 +58,8 @@
 #define evLoadAudioFile	    42
 #define evSetAspect         44
 #define evSetAudio	    45
-// 46 ...
+#define evSetVideo          46
+// 47 ...
 
 #define evExit              1000
 
--- a/Gui/mplayer/mw.c	Thu Dec 05 23:40:42 2002 +0000
+++ b/Gui/mplayer/mw.c	Thu Dec 05 23:54:15 2002 +0000
@@ -244,8 +244,6 @@
 }
 
 extern void exit_player(char* how);
-extern int audio_id;
-extern int dvdsub_id;
 extern char * dvd_device;
 extern int vcd_track;
 extern char * cdrom_device;
@@ -277,7 +275,14 @@
 	if ( guiIntfStruct.StreamType == STREAMTYPE_DVD ) goto play;
 	guiIntfStruct.FilenameChanged=1;
 	break;
-	
+
+   case evSetVideo:
+        if ( !guiIntfStruct.demuxer ) break;
+        video_id=(int)param;
+        if ( guiIntfStruct.StreamType == STREAMTYPE_DVD ) goto play;
+        guiIntfStruct.FilenameChanged=1;
+        break;
+
 #ifdef HAVE_VCD
    case evSetVCDTrack:
         guiIntfStruct.Track=(int)param;