summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-03 15:06:32 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-03 15:06:32 +0000
commitaf8bd4f39477073aae0d23e5efe0fad524234f50 (patch)
treef3efb1fde3975d95911a34b8887273978cb60bef /mplayer.c
parent8d36b5de7865af8c6d355abe2854af781e36488e (diff)
downloadmpv-af8bd4f39477073aae0d23e5efe0fad524234f50.tar.bz2
mpv-af8bd4f39477073aae0d23e5efe0fad524234f50.tar.xz
add VCD support for GUI
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6281 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/mplayer.c b/mplayer.c
index f421ab7a84..414f0e36ed 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -206,7 +206,7 @@ int vobsub_id=-1;
char* audio_lang=NULL;
char* dvdsub_lang=NULL;
static char* spudec_ifo=NULL;
-static int vcd_track=0;
+int vcd_track=0;
// cache2:
static int stream_cache_size=0;
@@ -813,12 +813,17 @@ if(!use_stdin && !slave_mode){
#endif
}
-#ifdef USE_DVDREAD
- if ( guiIntfStruct.DVDChanged )
+#if defined( HAVE_VCD ) && defined( USE_DVDREAD )
+ if ( guiIntfStruct.DiskChanged )
{
- guiIntfStruct.DVDChanged=0;
+#ifdef USE_DVDREAD
+ switch ( guiIntfStruct.StreamType )
+ {
+ case STREAMTYPE_DVD: filename=DEFAULT_DVD_DEVICE; break;
+ }
+#endif
+ guiIntfStruct.DiskChanged=0;
guiGetEvent( guiCEvent,(char *)guiSetPlay );
- filename=DEFAULT_DVD_DEVICE;
}
#endif
@@ -1383,12 +1388,9 @@ fflush(stdout);
if ( use_gui )
{
guiGetEvent( guiSetFileName,filename );
- guiIntfStruct.StreamType=stream->type;
+ guiGetEvent( guiSetStream,(char *)stream );
if ( sh_audio ) guiIntfStruct.AudioType=sh_audio->channels; else guiIntfStruct.AudioType=0;
if ( !sh_video && sh_audio ) guiGetEvent( guiSetAudioOnly,1 ); else guiGetEvent( guiSetAudioOnly,0 );
-#ifdef USE_DVDREAD
- if ( stream->type == STREAMTYPE_DVD ) guiGetEvent( guiSetDVD,(char *)stream->priv );
-#endif
}
#endif
@@ -2881,8 +2883,8 @@ if(rel_seek_secs || abs_seek_pos){
#endif
}
guiIntfStruct.Volume=(float)mixer_getbothvolume();
+ if ( guiIntfStruct.DiskChanged ) goto goto_next_file;
#ifdef USE_DVDREAD
- if ( guiIntfStruct.DVDChanged ) goto goto_next_file;
if ( stream->type == STREAMTYPE_DVD )
{
dvd_priv_t * dvdp = stream->priv;
@@ -3061,7 +3063,7 @@ while(playtree_iter != NULL) {
if( use_gui && !playtree_iter )
{
#ifdef USE_DVDREAD
- if ( !guiIntfStruct.DVDChanged )
+ if ( !guiIntfStruct.DiskChanged )
#endif
mplStop();
}