diff options
author | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-07-28 12:09:42 -0300 |
---|---|---|
committer | Thiago Santos <thiago.sousa.santos@collabora.com> | 2012-07-28 12:10:41 -0300 |
commit | 803a17be7b573b069abe5fefe9f64133810ba28d (patch) | |
tree | 3a7ff15fce1d76aa671bd6d1cfc7bc215468c1a4 /tests | |
parent | afd50a79f457d7ff6a0d4c4ca6f744a8920d0b91 (diff) |
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/camerabin2/gst-camerabin2-test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/examples/camerabin2/gst-camerabin2-test.c b/tests/examples/camerabin2/gst-camerabin2-test.c index f72467d86..e5ad385ac 100644 --- a/tests/examples/camerabin2/gst-camerabin2-test.c +++ b/tests/examples/camerabin2/gst-camerabin2-test.c @@ -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; |