diff options
author | Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com> | 2009-03-27 16:55:19 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-06-20 15:21:21 +0100 |
commit | 29d0c5bdd8beeb2b1ed25e8bf37eec9a135c5422 (patch) | |
tree | 8556d9440934c8ea1b79244f310f924c4644d36f /sys/vdpau/gstvdpaudecoder.c | |
parent | 090638ccec59cebb11327d12ebcff78015716bed (diff) | |
download | gst-plugins-bad-29d0c5bdd8beeb2b1ed25e8bf37eec9a135c5422.tar.gz gst-plugins-bad-29d0c5bdd8beeb2b1ed25e8bf37eec9a135c5422.tar.bz2 gst-plugins-bad-29d0c5bdd8beeb2b1ed25e8bf37eec9a135c5422.zip |
vdpau: extract mpeg2 profile from codec_data
Diffstat (limited to 'sys/vdpau/gstvdpaudecoder.c')
-rw-r--r-- | sys/vdpau/gstvdpaudecoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/vdpau/gstvdpaudecoder.c b/sys/vdpau/gstvdpaudecoder.c index 36a566e0..7d4ecb39 100644 --- a/sys/vdpau/gstvdpaudecoder.c +++ b/sys/vdpau/gstvdpaudecoder.c @@ -302,6 +302,8 @@ gst_vdpaudecoder_sink_set_caps (GstPad * pad, GstCaps * caps) &framerate_numerator, &framerate_denominator); src_caps = gst_pad_get_allowed_caps (dec->src); + if (G_UNLIKELY (!src_caps)) + return FALSE; structure = gst_caps_get_structure (src_caps, 0); gst_structure_get_fourcc (structure, "format", &fourcc_format); @@ -318,7 +320,7 @@ gst_vdpaudecoder_sink_set_caps (GstPad * pad, GstCaps * caps) gst_caps_unref (new_caps); - if (!res) + if (G_UNLIKELY (!res)) return FALSE; dec->width = width; |