mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
examples: camerabin: remove assertion on null property
Check if the flags are not null before trying to set them to camerabin to avoid an assertion
This commit is contained in:
parent
afd50a79f4
commit
803a17be7b
1 changed files with 4 additions and 1 deletions
|
@ -679,7 +679,10 @@ setup_pipeline (void)
|
|||
|
||||
GST_INFO_OBJECT (camerabin, "camerabin created");
|
||||
|
||||
gst_util_set_object_arg (G_OBJECT (camerabin), "flags", camerabin_flags);
|
||||
if (camerabin_flags)
|
||||
gst_util_set_object_arg (G_OBJECT (camerabin), "flags", camerabin_flags);
|
||||
else
|
||||
gst_util_set_object_arg (G_OBJECT (camerabin), "flags", "");
|
||||
|
||||
if (videosrc_name) {
|
||||
GstElement *wrapper;
|
||||
|
|
Loading…
Reference in a new issue