[Mplayer-cvslog] CVS: main mplayer.c,1.322,1.323

Zoltan Ponekker pontscho at mplayer.dev.hu
Wed Nov 21 18:43:58 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv26669

Modified Files:
	mplayer.c 
Log Message:
add half dvd support for gui

Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -r1.322 -r1.323
--- mplayer.c	21 Nov 2001 16:13:57 -0000	1.322
+++ mplayer.c	21 Nov 2001 17:43:55 -0000	1.323
@@ -850,6 +850,25 @@
 sh_audio=d_audio->sh;
 sh_video=d_video->sh;
 
+#ifdef HAVE_NEW_GUI
+#ifdef USE_DVDREAD
+if ( use_gui && stream->type == STREAMTYPE_DVD )
+ {
+  dvd_priv_t * dvdp = stream->priv;
+  mplShMem->DVD.titles=dvdp->vmg_file->tt_srpt->nr_of_srpts;
+  mplShMem->DVD.chapters=dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_ptts;
+  mplShMem->DVD.angles=dvdp->vmg_file->tt_srpt->title[dvd_title].nr_of_angles;
+  mplShMem->DVD.nr_of_audio_channels=dvdp->nr_of_channels;
+  memcpy( mplShMem->DVD.audio_streams,dvdp->audio_streams,sizeof( dvdp->audio_streams ) );
+  mplShMem->DVD.nr_of_subtitles=dvdp->nr_of_subtitles;
+  memcpy( mplShMem->DVD.subtitles,dvdp->subtitles,sizeof( dvdp->subtitles ) );
+  mplShMem->DVD.current_title=dvd_title + 1;
+  mplShMem->DVD.current_chapter=dvd_chapter + 1;
+  mplShMem->Track=dvd_title + 1;
+ } 
+#endif
+#endif
+
 current_module="video_read_properties";
 
 if(sh_video){
@@ -1970,6 +1989,13 @@
 #endif
 	 } 
 	mplShMem->Volume=(float)mixer_getbothvolume();
+#ifdef USE_DVDREAD
+        if ( stream->type == STREAMTYPE_DVD )
+	 {
+	  dvd_priv_t * dvdp = stream->priv;
+	  mplShMem->DVD.current_chapter=dvdp->cur_cell + 1;
+	 }
+#endif
       }
 #endif
 




More information about the MPlayer-cvslog mailing list