need this

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8381 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-12-05 23:54:15 +00:00
parent eb13fb1ec2
commit 67e827d13f
2 changed files with 10 additions and 4 deletions

View File

@ -58,7 +58,8 @@
#define evLoadAudioFile 42
#define evSetAspect 44
#define evSetAudio 45
// 46 ...
#define evSetVideo 46
// 47 ...
#define evExit 1000

View File

@ -244,8 +244,6 @@ drawrenderedtext:
}
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 @@ void mplEventHandling( int msg,float param )
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;