mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tests: camerabin: report element creation failures better and fix up LIBS
This commit is contained in:
parent
9940ae090e
commit
15610ca447
2 changed files with 7 additions and 2 deletions
|
@ -329,8 +329,8 @@ elements_camerabin_CFLAGS = \
|
|||
elements_camerabin_LDADD = \
|
||||
$(top_builddir)/gst-libs/gst/interfaces/libgstphotography-@GST_API_VERSION@.la \
|
||||
$(top_builddir)/gst-libs/gst/basecamerabinsrc/libgstbasecamerabinsrc-@GST_API_VERSION@.la \
|
||||
-lgstpbutils-$(GST_API_VERSION) \
|
||||
$(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
|
||||
$(GST_PLUGINS_BASE_LIBS) -lgstpbutils-$(GST_API_VERSION) \
|
||||
$(GST_BASE_LIBS) $(GST_LIBS) $(LDADD)
|
||||
elements_camerabin_SOURCES = elements/camerabin.c
|
||||
|
||||
elements_dtmf_CFLAGS = $(GST_PLUGINS_BAD_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) \
|
||||
|
|
|
@ -408,10 +408,15 @@ setup_wrappercamerabinsrc_videotestsrc (void)
|
|||
main_loop = g_main_loop_new (NULL, TRUE);
|
||||
|
||||
camera = gst_check_setup_element ("camerabin");
|
||||
fail_unless (camera != NULL, "failed to create camerabin element");
|
||||
fakevideosink = gst_element_factory_make ("fakesink", NULL);
|
||||
fail_unless (fakevideosink != NULL, "failed to create fakesink element");
|
||||
src = gst_element_factory_make ("wrappercamerabinsrc", NULL);
|
||||
fail_unless (src != NULL, "failed to create wrappercamerabinsrc element");
|
||||
testsrc = gst_element_factory_make ("videotestsrc", NULL);
|
||||
fail_unless (testsrc != NULL, "failed to create videotestsrc element");
|
||||
audiosrc = gst_element_factory_make ("audiotestsrc", NULL);
|
||||
fail_unless (audiosrc != NULL, "failed to create audiotestsrc element");
|
||||
|
||||
preview_caps = gst_caps_new_simple ("video/x-raw", "width", G_TYPE_INT,
|
||||
320, "height", G_TYPE_INT, 240, NULL);
|
||||
|
|
Loading…
Reference in a new issue