summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_decoder.c
diff options
context:
space:
mode:
authorJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-21 12:10:58 +0000
committerJames Courtier-Dutton <jcdutton@users.sourceforge.net>2002-10-21 12:10:58 +0000
commit39b4b1968511ecc361d9bb6e627ca5ca47909b74 (patch)
tree4972fccec9bc2c2691a5b926ad143f053774d13e /src/xine-engine/video_decoder.c
parentf4557ef4c22247ef615c96ebca13616b3fd9937b (diff)
downloadxine-lib-39b4b1968511ecc361d9bb6e627ca5ca47909b74.tar.gz
xine-lib-39b4b1968511ecc361d9bb6e627ca5ca47909b74.tar.bz2
Enable DVD SPU subtitles.
CLUT and timing do not seem to be working well yet. CVS patchset: 2897 CVS date: 2002/10/21 12:10:58
Diffstat (limited to 'src/xine-engine/video_decoder.c')
-rw-r--r--src/xine-engine/video_decoder.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/xine-engine/video_decoder.c b/src/xine-engine/video_decoder.c
index dc461f6f0..e08a52a9b 100644
--- a/src/xine-engine/video_decoder.c
+++ b/src/xine-engine/video_decoder.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: video_decoder.c,v 1.102 2002/10/19 18:51:22 guenter Exp $
+ * $Id: video_decoder.c,v 1.103 2002/10/21 12:11:02 jcdutton Exp $
*
*/
@@ -37,18 +37,18 @@
#define LOG
*/
-static spu_decoder_t* update_spu_decoder (xine_stream_t *this, int type) {
+static spu_decoder_t* update_spu_decoder (xine_stream_t *stream, int type) {
int streamtype = (type>>16) & 0xFF;
- if( this->spu_decoder_streamtype != streamtype ||
- !this->spu_decoder_plugin ) {
+ if( stream->spu_decoder_streamtype != streamtype ||
+ !stream->spu_decoder_plugin ) {
- if (this->spu_decoder_plugin)
- this->spu_decoder_plugin->close (this->spu_decoder_plugin);
+ if (stream->spu_decoder_plugin)
+ free_spu_decoder (stream, stream->spu_decoder_plugin);
- this->spu_decoder_streamtype = streamtype;
- this->spu_decoder_plugin = get_spu_decoder (this, streamtype);
+ stream->spu_decoder_streamtype = streamtype;
+ stream->spu_decoder_plugin = get_spu_decoder (stream, streamtype);
/* obsolete?
if (this->spu_decoder_plugin )
@@ -56,7 +56,7 @@ static spu_decoder_t* update_spu_decoder (xine_stream_t *this, int type) {
this->video_out);
*/
}
- return this->spu_decoder_plugin;
+ return stream->spu_decoder_plugin;
}
void *video_decoder_loop (void *stream_gen) {