From 8ded28b1260c6cf956f6029f74bccca51ce7fd73 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 15 Jun 2009 18:29:56 +0100 Subject: VDPAU: Fix up caps in vdpaumpegdec. Remove extra semicolon Fix a typo in the caps for the VDPAU mpeg decoder (chroma_type->chroma-type) and use the GST_VDP_VIDEO_CAPS for the pad template. Remove a stray semicolon. --- sys/vdpau/gstvdpmpegdec.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/vdpau') diff --git a/sys/vdpau/gstvdpmpegdec.c b/sys/vdpau/gstvdpmpegdec.c index b720217d..872348c6 100644 --- a/sys/vdpau/gstvdpmpegdec.c +++ b/sys/vdpau/gstvdpmpegdec.c @@ -72,8 +72,7 @@ static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink", static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-vdpau-video, " "chroma-type = (int) 0") - ); + GST_STATIC_CAPS (GST_VDP_VIDEO_CAPS)); #define DEBUG_INIT(bla) \ GST_DEBUG_CATEGORY_INIT (gst_vdp_mpeg_dec_debug, "vdpaumpegdec", 0, "VDPAU powered mpeg decoder"); @@ -188,7 +187,7 @@ gst_vdp_mpeg_dec_set_caps (GstPad * pad, GstCaps * caps) src_caps = gst_caps_new_simple ("video/x-vdpau-video", "device", G_TYPE_OBJECT, mpeg_dec->device, - "chroma_type", G_TYPE_INT, VDP_CHROMA_TYPE_420, + "chroma-type", G_TYPE_INT, VDP_CHROMA_TYPE_420, "width", G_TYPE_INT, width, "height", G_TYPE_INT, height, "framerate", GST_TYPE_FRACTION, fps_n, fps_d, @@ -247,7 +246,7 @@ gst_vdp_mpeg_dec_set_caps (GstPad * pad, GstCaps * caps) } } - bitrate += (ext.bitrate_ext << 18);; + bitrate += (ext.bitrate_ext << 18); gst_buffer_unref (buf); } -- cgit v1.2.1