summaryrefslogtreecommitdiff
path: root/src/libxinevdec/qtrle.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/qtrle.c')
-rw-r--r--src/libxinevdec/qtrle.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libxinevdec/qtrle.c b/src/libxinevdec/qtrle.c
index 6382e888d..4c355b2c1 100644
--- a/src/libxinevdec/qtrle.c
+++ b/src/libxinevdec/qtrle.c
@@ -21,7 +21,7 @@
* For more information on the QT RLE format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: qtrle.c,v 1.6 2002/11/12 18:40:54 miguelfreitas Exp $
+ * $Id: qtrle.c,v 1.7 2002/11/20 11:57:47 mroi Exp $
*/
#include <stdio.h>
@@ -705,7 +705,7 @@ static void qtrle_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);
@@ -724,7 +724,6 @@ static void qtrle_decode_data (video_decoder_t *this_gen,
init_yuv_planes(&this->yuv_planes, this->width, this->height);
- this->stream->video_out->open (this->stream->video_out);
this->decoder_ok = 1;
/* load the stream/meta info */
@@ -803,7 +802,7 @@ static void qtrle_decode_data (video_decoder_t *this_gen,
}
}
- img->draw(img);
+ img->draw(img, this->stream);
img->free(img);
this->size = 0;
@@ -844,7 +843,7 @@ static void qtrle_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);
@@ -913,6 +912,6 @@ static decoder_info_t dec_info_video = {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_VIDEO_DECODER, 12, "qtrle", XINE_VERSION_CODE, &dec_info_video, init_plugin },
+ { PLUGIN_VIDEO_DECODER, 13, "qtrle", XINE_VERSION_CODE, &dec_info_video, init_plugin },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};