[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
- Previous message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.115,1.116 faq.html,1.41,1.42 gcc-2.96-3.0.html,1.4,1.5 users_against_developers.html,1.6,1.7 video.html,1.42,1.43
- Next message: [Mplayer-cvslog] CVS: main/Gui events.h,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Mplayer-cvslog] CVS: main/DOCS documentation.html,1.115,1.116 faq.html,1.41,1.42 gcc-2.96-3.0.html,1.4,1.5 users_against_developers.html,1.6,1.7 video.html,1.42,1.43
- Next message: [Mplayer-cvslog] CVS: main/Gui events.h,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list