mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
videomixer: Do not check if caps are empty when they are NULL
In the case the caps are actually NULL, we should just concider it the same way as empty caps in that case.
This commit is contained in:
parent
268058eb37
commit
9f4a8ccdf4
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ gst_videomixer2_update_converters (GstVideoMixer2 * mix)
|
|||
|
||||
downstream_caps = gst_pad_get_allowed_caps (mix->srcpad);
|
||||
|
||||
if (gst_caps_is_empty (downstream_caps))
|
||||
if (!downstream_caps || gst_caps_is_empty (downstream_caps))
|
||||
return FALSE;
|
||||
|
||||
/* first find new preferred format */
|
||||
|
|
Loading…
Reference in a new issue