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:
Tim-Philipp Müller 2011-01-08 00:01:01 +00:00
parent 1498cbcc2d
commit 3145eac577

View file

@ -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);