mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
rtpvrawdepay: fail on interlaced video
Fail on interlaced video until we support it.
This commit is contained in:
parent
62d5787bcd
commit
af2e8f8470
1 changed files with 10 additions and 0 deletions
|
@ -139,6 +139,11 @@ gst_rtp_vraw_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps)
|
||||||
goto no_height;
|
goto no_height;
|
||||||
height = atoi (str);
|
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")))
|
if (!(str = gst_structure_get_string (structure, "sampling")))
|
||||||
goto no_sampling;
|
goto no_sampling;
|
||||||
|
|
||||||
|
@ -248,6 +253,11 @@ no_height:
|
||||||
GST_ERROR_OBJECT (depayload, "no height specified");
|
GST_ERROR_OBJECT (depayload, "no height specified");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
interlaced:
|
||||||
|
{
|
||||||
|
GST_ERROR_OBJECT (depayload, "interlaced formats not supported yet");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
no_sampling:
|
no_sampling:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (depayload, "no sampling specified");
|
GST_ERROR_OBJECT (depayload, "no sampling specified");
|
||||||
|
|
Loading…
Reference in a new issue