mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
directfb: don't put code with side-effects into g_assert()
It will all be turned into a NOOP if -DG_DISABLE_ASSERT is used (as it is for pre-releases and releases).
This commit is contained in:
parent
1498cbcc2d
commit
3145eac577
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@ main (int argc, char *argv[])
|
|||
|
||||
/* Adding elements to the pipeline */
|
||||
gst_bin_add_many (GST_BIN (pipeline), src, sink, NULL);
|
||||
g_assert (gst_element_link (src, sink));
|
||||
if (!gst_element_link (src, sink))
|
||||
g_error ("Couldn't link videotestsrc and dfbvideosink");
|
||||
|
||||
/* Let's play ! */
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
|
|
Loading…
Reference in a new issue