comparison mpcommon.c @ 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 cafeb7863de8
children 8bb62807f3b8
comparison
equal deleted inserted replaced
31607:c593c72884bb 31608:ad007a37ae4e
128 sub_last_pts = refpts; 128 sub_last_pts = refpts;
129 } 129 }
130 } 130 }
131 131
132 // DVD sub: 132 // DVD sub:
133 if (vo_config_count && vo_spudec && 133 if (vo_config_count &&
134 (vobsub_id >= 0 || (dvdsub_id >= 0 && type == 'v'))) { 134 (vobsub_id >= 0 || (dvdsub_id >= 0 && type == 'v'))) {
135 int timestamp; 135 int timestamp;
136 if (!vo_spudec)
137 vo_spudec = spudec_new(NULL);
136 current_module = "spudec"; 138 current_module = "spudec";
137 /* Get a sub packet from the DVD or a vobsub */ 139 /* Get a sub packet from the DVD or a vobsub */
138 while(1) { 140 while(1) {
139 // Vobsub 141 // Vobsub
140 len = 0; 142 len = 0;