tests: camerabin: report element creation failures better and fix up LIBS

This commit is contained in:
Tim-Philipp Müller 2013-02-28 20:11:38 +00:00
parent 9940ae090e
commit 15610ca447
2 changed files with 7 additions and 2 deletions

View file

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

View file

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