mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 22:01:10 +00:00
init title change basz.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3598 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
39118a2970
commit
bd53040995
@ -40,7 +40,6 @@ GtkWidget * create_MessageBox( int type )
|
||||
GtkWidget * frame4;
|
||||
GtkWidget * vbox1;
|
||||
GtkWidget * hbox1;
|
||||
GtkWidget * pixmap1;
|
||||
GtkWidget * hseparator1;
|
||||
GtkWidget * hbuttonbox1;
|
||||
GtkWidget * Ok;
|
||||
|
@ -240,6 +240,26 @@ void mplMsgHandle( int msg,float param )
|
||||
}
|
||||
mplPlay();
|
||||
break;
|
||||
case evSetDVDSubtitle:
|
||||
break;
|
||||
case evSetDVDAudio:
|
||||
break;
|
||||
case evSetDVDChapter:
|
||||
mplStop();
|
||||
dvd_title=mplShMem->DVD.current_title - 1;
|
||||
dvd_angle=mplShMem->DVD.current_angle - 1;
|
||||
dvd_chapter=(int)param;
|
||||
strcpy( mplShMem->Filename,"/dev/dvd" );
|
||||
mplPlay();
|
||||
break;
|
||||
case evSetDVDTitle:
|
||||
mplStop();
|
||||
dvd_title=(int)param;
|
||||
dvd_chapter=1;
|
||||
dvd_angle=1;
|
||||
strcpy( mplShMem->Filename,"/dev/dvd" );
|
||||
mplPlay();
|
||||
break;
|
||||
|
||||
case evPause:
|
||||
case evPauseSwitchToPlay:
|
||||
|
@ -42,6 +42,7 @@ typedef struct
|
||||
int angles;
|
||||
int current_chapter;
|
||||
int current_title;
|
||||
int current_angle;
|
||||
int nr_of_audio_channels;
|
||||
audio_stream_t audio_streams[8];
|
||||
int nr_of_subtitles;
|
||||
|
@ -920,6 +920,7 @@ if ( use_gui && stream->type == STREAMTYPE_DVD )
|
||||
memcpy( mplShMem->DVD.subtitles,dvdp->subtitles,sizeof( dvdp->subtitles ) );
|
||||
mplShMem->DVD.current_title=dvd_title + 1;
|
||||
mplShMem->DVD.current_chapter=dvd_chapter + 1;
|
||||
mplShMem->DVD.current_angle=dvd_angle + 1;
|
||||
mplShMem->Track=dvd_title + 1;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user