mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
deinterlace: The return value of gst_pad_set_caps() is not relevant anymore
Caps can fail to be set because the pad is not linked yet for example.
This commit is contained in:
parent
318cd39c3e
commit
ecc6c607ff
1 changed files with 1 additions and 8 deletions
|
@ -2462,8 +2462,7 @@ gst_deinterlace_setcaps (GstDeinterlace * self, GstPad * pad, GstCaps * caps)
|
||||||
"progressive", NULL);
|
"progressive", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!gst_pad_set_caps (self->srcpad, srccaps))
|
gst_pad_set_caps (self->srcpad, srccaps);
|
||||||
goto caps_not_accepted;
|
|
||||||
|
|
||||||
if (fps_n != 0) {
|
if (fps_n != 0) {
|
||||||
self->field_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n);
|
self->field_duration = gst_util_uint64_scale (GST_SECOND, fps_d, fps_n);
|
||||||
|
@ -2489,12 +2488,6 @@ invalid_caps:
|
||||||
GST_ERROR_OBJECT (pad, "Invalid caps: %" GST_PTR_FORMAT, caps);
|
GST_ERROR_OBJECT (pad, "Invalid caps: %" GST_PTR_FORMAT, caps);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
caps_not_accepted:
|
|
||||||
{
|
|
||||||
GST_ERROR_OBJECT (pad, "Caps not accepted: %" GST_PTR_FORMAT, srccaps);
|
|
||||||
gst_caps_unref (srccaps);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
no_bufferpool:
|
no_bufferpool:
|
||||||
{
|
{
|
||||||
GST_ERROR_OBJECT (pad, "could not negotiate bufferpool");
|
GST_ERROR_OBJECT (pad, "could not negotiate bufferpool");
|
||||||
|
|
Loading…
Reference in a new issue