summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@noraisin.net>2009-06-15 18:29:56 +0100
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:46 +0100
commit8ded28b1260c6cf956f6029f74bccca51ce7fd73 (patch)
tree158de2b9d527c62da2cd26721e8d51acfbe4ddd4 /sys
parentf45f87709c7da9105024b0ceedda0e3155526240 (diff)
downloadgst-plugins-bad-8ded28b1260c6cf956f6029f74bccca51ce7fd73.tar.gz
gst-plugins-bad-8ded28b1260c6cf956f6029f74bccca51ce7fd73.tar.bz2
gst-plugins-bad-8ded28b1260c6cf956f6029f74bccca51ce7fd73.zip
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/vdpau/gstvdpmpegdec.c7
1 files changed, 3 insertions, 4 deletions
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);
}