From e8bc11bfbd479af56f10e478794622773e62252c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 27 Jun 2012 11:23:36 +0200 Subject: [PATCH] asf: fix x-wmv format in caps --- gst/asfdemux/gstasfdemux.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 8043f37309..3d28203483 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -2277,6 +2277,7 @@ gst_asf_demux_add_video_stream (GstASFDemux * demux, GstBuffer *extradata = NULL; GstPad *src_pad; GstCaps *caps; + gchar *str; gchar *name = NULL; gchar *codec_name = NULL; gint size_left = video->size - 40; @@ -2331,7 +2332,9 @@ gst_asf_demux_add_video_stream (GstASFDemux * demux, } /* add fourcc format to caps, some proprietary decoders seem to need it */ - gst_caps_set_simple (caps, "format", G_TYPE_UINT, video->tag, NULL); + str = g_strdup_printf ("%" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (video->tag)); + gst_caps_set_simple (caps, "format", G_TYPE_STRING, str, NULL); + g_free (str); if (codec_name) { tags = gst_tag_list_new (GST_TAG_VIDEO_CODEC, codec_name, NULL);