summaryrefslogtreecommitdiffstats
path: root/gst/rtp
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2009-02-26 13:06:17 +0100
committerWim Taymans <wim.taymans@collabora.co.uk>2009-02-26 13:06:17 +0100
commitaf2e8f847017263d2f103f522187e4e6d76a6395 (patch)
treebb6b32603aeaa30d82efbca11fe721b53738fc26 /gst/rtp
parent62d5787bcda78bba5384732f9d25042d33af7923 (diff)
rtpvrawdepay: fail on interlaced video
Fail on interlaced video until we support it.
Diffstat (limited to 'gst/rtp')
-rw-r--r--gst/rtp/gstrtpvrawdepay.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/rtp/gstrtpvrawdepay.c b/gst/rtp/gstrtpvrawdepay.c
index 35e68a3e..3f599f5d 100644
--- a/gst/rtp/gstrtpvrawdepay.c
+++ b/gst/rtp/gstrtpvrawdepay.c
@@ -139,6 +139,11 @@ gst_rtp_vraw_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
goto no_height;
height = atoi (str);
+ /* optional interlace value but we don't handle interlaced
+ * formats yet */
+ if ((str = gst_structure_get_string (structure, "interlace")))
+ goto interlaced;
+
if (!(str = gst_structure_get_string (structure, "sampling")))
goto no_sampling;
@@ -248,6 +253,11 @@ no_height:
GST_ERROR_OBJECT (depayload, "no height specified");
return FALSE;
}
+interlaced:
+ {
+ GST_ERROR_OBJECT (depayload, "interlaced formats not supported yet");
+ return FALSE;
+ }
no_sampling:
{
GST_ERROR_OBJECT (depayload, "no sampling specified");