mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
Prevent warning
Original commit message from CVS: Prevent warning
This commit is contained in:
parent
d379242755
commit
186265276b
1 changed files with 2 additions and 1 deletions
|
@ -434,7 +434,8 @@ gst_avimux_sinkconnect (GstPad *pad, GstCaps *vscaps)
|
|||
{
|
||||
gint layer = 3;
|
||||
|
||||
if (gst_caps_has_property(caps, "layer"))
|
||||
if (GST_CAPS_PROPERTIES(caps) != NULL &&
|
||||
gst_caps_has_property(caps, "layer"))
|
||||
gst_caps_get_int(caps, "layer", &layer);
|
||||
else
|
||||
GST_DEBUG(GST_CAT_PLUGIN_INFO,
|
||||
|
|
Loading…
Reference in a new issue