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.
This commit is contained in:
Jan Schmidt 2009-06-15 18:29:56 +01:00
parent f45f87709c
commit 8ded28b126

View file

@ -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);
}