[MPlayer-cvslog] r31674 - trunk/mpcommon.c
reimar
subversion at mplayerhq.hu
Sat Jul 10 20:11:05 CEST 2010
Author: reimar
Date: Sat Jul 10 20:11:05 2010
New Revision: 31674
Log:
Automatically allocate a vo_spudec if there is none.
Allows playback of DVD subtitles from "raw" MPEG-PS.
Modified:
trunk/mpcommon.c
Modified: trunk/mpcommon.c
==============================================================================
--- trunk/mpcommon.c Sat Jul 10 20:06:04 2010 (r31673)
+++ trunk/mpcommon.c Sat Jul 10 20:11:05 2010 (r31674)
@@ -130,9 +130,11 @@ void update_subtitles(sh_video_t *sh_vid
}
// DVD sub:
- if (vo_config_count && vo_spudec &&
+ if (vo_config_count &&
(vobsub_id >= 0 || (dvdsub_id >= 0 && type == 'v'))) {
int timestamp;
+ if (!vo_spudec)
+ vo_spudec = spudec_new(NULL);
current_module = "spudec";
/* Get a sub packet from the DVD or a vobsub */
while(1) {
More information about the MPlayer-cvslog
mailing list