summaryrefslogtreecommitdiff
path: root/src/libxinevdec/wc3video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/wc3video.c')
-rw-r--r--src/libxinevdec/wc3video.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libxinevdec/wc3video.c b/src/libxinevdec/wc3video.c
index 44fb4bf2a..bed53b93d 100644
--- a/src/libxinevdec/wc3video.c
+++ b/src/libxinevdec/wc3video.c
@@ -22,7 +22,7 @@
* For more information on the WC3 Movie format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: wc3video.c,v 1.9 2002/11/12 18:40:54 miguelfreitas Exp $
+ * $Id: wc3video.c,v 1.10 2002/11/20 11:57:48 mroi Exp $
*/
#include <stdio.h>
@@ -365,7 +365,7 @@ static void wc3video_decode_data (video_decoder_t *this_gen,
}
if (buf->decoder_flags & BUF_FLAG_HEADER) { /* need to initialize */
- this->stream->video_out->open (this->stream->video_out);
+ this->stream->video_out->open (this->stream->video_out, this->stream);
if(this->buf)
free(this->buf);
@@ -382,7 +382,6 @@ static void wc3video_decode_data (video_decoder_t *this_gen,
init_yuv_planes(&this->yuv_planes2, WC3_WIDTH, WC3_HEIGHT);
this->current_planes = 1;
- this->stream->video_out->open (this->stream->video_out);
this->decoder_ok = 1;
/* load the stream/meta info */
@@ -439,7 +438,7 @@ static void wc3video_decode_data (video_decoder_t *this_gen,
}
}
- img->draw(img);
+ img->draw(img, this->stream);
img->free(img);
this->size = 0;
@@ -480,7 +479,7 @@ static void wc3video_dispose (video_decoder_t *this_gen) {
if (this->decoder_ok) {
this->decoder_ok = 0;
- this->stream->video_out->close(this->stream->video_out);
+ this->stream->video_out->close(this->stream->video_out, this->stream);
}
free (this_gen);
@@ -544,6 +543,6 @@ static decoder_info_t video_decoder_info = {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_VIDEO_DECODER, 12, "wc3video", XINE_VERSION_CODE, &video_decoder_info, &init_plugin },
+ { PLUGIN_VIDEO_DECODER, 13, "wc3video", XINE_VERSION_CODE, &video_decoder_info, &init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};