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:
Thibault Saunier 2013-09-11 14:32:17 -03:00
parent 268058eb37
commit 9f4a8ccdf4

View file

@ -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 */