changeset 31608:ad007a37ae4e

Automatically allocate a vo_spudec if there is none. Allows playback of DVD subtitles from "raw" MPEG-PS.
author reimar
date Sat, 10 Jul 2010 18:11:05 +0000
parents c593c72884bb
children cd81fce1f010
files mpcommon.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpcommon.c	Sat Jul 10 18:06:04 2010 +0000
+++ b/mpcommon.c	Sat Jul 10 18:11:05 2010 +0000
@@ -130,9 +130,11 @@
     }
 
     // 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) {