summaryrefslogtreecommitdiff
path: root/src/libxinevdec/qtsmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libxinevdec/qtsmc.c')
-rw-r--r--src/libxinevdec/qtsmc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libxinevdec/qtsmc.c b/src/libxinevdec/qtsmc.c
index 048cac687..76c99e5ed 100644
--- a/src/libxinevdec/qtsmc.c
+++ b/src/libxinevdec/qtsmc.c
@@ -23,7 +23,7 @@
* For more information on the SMC format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: qtsmc.c,v 1.6 2002/10/22 05:27:54 tmmm Exp $
+ * $Id: qtsmc.c,v 1.7 2002/11/11 05:55:51 tmmm Exp $
*/
#include <stdio.h>
@@ -545,10 +545,14 @@ static void qtsmc_decode_data (video_decoder_t *this_gen,
this->buf = malloc(this->bufsize);
this->size = 0;
+ init_yuv_planes(&this->yuv_planes, this->width, this->height);
+
this->stream->video_out->open (this->stream->video_out);
this->decoder_ok = 1;
- init_yuv_planes(&this->yuv_planes, this->width, this->height);
+ /* load the stream/meta info */
+ this->stream->meta_info[XINE_META_INFO_VIDEOCODEC] = strdup("Quicktime Graphics (SMC)");
+ this->stream->stream_info[XINE_STREAM_INFO_VIDEO_HANDLED] = 1;
return;
} else if (this->decoder_ok) {