mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
Use a custom export symbol regex for libgstcheck, as it needs to export symbols that don't match the standard GStream...
Original commit message from CVS: * configure.ac: * libs/gst/check/Makefile.am: Use a custom export symbol regex for libgstcheck, as it needs to export symbols that don't match the standard GStreamer gst_* pattern, and --export-dynamic is not portable (only works on GNU ld) * libs/gst/check/gstcheck.c: (gst_check_setup_src_pad), (gst_check_setup_sink_pad): Make sure to pass a message parameter to the fail_* macros. * tests/check/gst/gstinfo.c: (GST_START_TEST): Fix some compiler warnings.
This commit is contained in:
parent
bff7cbd845
commit
d7cbd5de33
5 changed files with 25 additions and 6 deletions
16
ChangeLog
16
ChangeLog
|
@ -1,3 +1,19 @@
|
|||
2007-10-25 Jan Schmidt <Jan.Schmidt@sun.com>
|
||||
|
||||
* configure.ac:
|
||||
* libs/gst/check/Makefile.am:
|
||||
Use a custom export symbol regex for libgstcheck, as it needs
|
||||
to export symbols that don't match the standard GStreamer gst_*
|
||||
pattern, and --export-dynamic is not portable (only works on
|
||||
GNU ld)
|
||||
|
||||
* libs/gst/check/gstcheck.c: (gst_check_setup_src_pad),
|
||||
(gst_check_setup_sink_pad):
|
||||
Make sure to pass a message parameter to the fail_* macros.
|
||||
|
||||
* tests/check/gst/gstinfo.c: (GST_START_TEST):
|
||||
Fix some compiler warnings.
|
||||
|
||||
2007-10-25 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* tests/check/gst/gststructure.c: (test_to_string):
|
||||
|
|
|
@ -524,6 +524,9 @@ dnl linker flags shared by all libraries
|
|||
dnl LDFLAGS modifier defining exported symbols from built libraries
|
||||
GST_LIB_LDFLAGS="-export-symbols-regex \^[_]*\(gst_\|Gst\|GST_\).*"
|
||||
AC_SUBST(GST_LIB_LDFLAGS)
|
||||
dnl Version of the linker flags specifically for libgstcheck to support the boonky extra symbols it exports.
|
||||
GST_CHECK_LIB_LDFLAGS="-export-symbols-regex \^\([_]*\(gst_\|Gst\|GST_\).*\|check_\(debug\|mutex\|cond\)\|buffers\|mutex\|start_cond\|sync_cond\|thread_list\)$"
|
||||
AC_SUBST(GST_CHECK_LIB_LDFLAGS)
|
||||
|
||||
dnl GST_OBJ_*
|
||||
dnl default vars for all internal objects built on libgstreamer
|
||||
|
|
|
@ -9,8 +9,8 @@ libgstcheck_@GST_MAJORMINOR@_la_SOURCES = \
|
|||
libgstcheck_@GST_MAJORMINOR@_la_CFLAGS = $(GST_OBJ_CFLAGS) $(CHECK_CFLAGS)
|
||||
libgstcheck_@GST_MAJORMINOR@_la_LIBADD = $(GST_OBJ_LIBS) $(CHECK_LIBS) \
|
||||
$(top_builddir)/gst/libgstreamer-@GST_MAJORMINOR@.la $(LIBM)
|
||||
libgstcheck_@GST_MAJORMINOR@_la_LDFLAGS = -Wl,--export-dynamic \
|
||||
libgstbase_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
libgstcheck_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_CHECK_LIB_LDFLAGS) \
|
||||
$(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
|
||||
libgstcheck_@GST_MAJORMINOR@includedir = \
|
||||
$(includedir)/gstreamer-@GST_MAJORMINOR@/gst/check
|
||||
|
|
|
@ -179,7 +179,7 @@ gst_check_setup_src_pad (GstElement * element,
|
|||
GST_ELEMENT_NAME (element));
|
||||
ASSERT_OBJECT_REFCOUNT (sinkpad, "sinkpad", 2);
|
||||
if (caps)
|
||||
fail_unless (gst_pad_set_caps (srcpad, caps));
|
||||
fail_unless (gst_pad_set_caps (srcpad, caps), "could not set caps on pad");
|
||||
fail_unless (gst_pad_link (srcpad, sinkpad) == GST_PAD_LINK_OK,
|
||||
"Could not link source and %s sink pads", GST_ELEMENT_NAME (element));
|
||||
gst_object_unref (sinkpad); /* because we got it higher up */
|
||||
|
@ -231,7 +231,7 @@ gst_check_setup_sink_pad (GstElement * element, GstStaticPadTemplate * template,
|
|||
fail_if (srcpad == NULL, "Could not get source pad from %s",
|
||||
GST_ELEMENT_NAME (element));
|
||||
if (caps)
|
||||
fail_unless (gst_pad_set_caps (sinkpad, caps));
|
||||
fail_unless (gst_pad_set_caps (sinkpad, caps), "Could not set pad caps");
|
||||
gst_pad_set_chain_function (sinkpad, gst_check_chain_func);
|
||||
|
||||
GST_DEBUG_OBJECT (element, "Linking element src pad and receiving sink pad");
|
||||
|
|
|
@ -54,7 +54,7 @@ GST_START_TEST (info_ptr_format_printf_extension)
|
|||
gst_debug_set_default_threshold (GST_LEVEL_LOG);
|
||||
|
||||
/* NULL object */
|
||||
GST_LOG ("NULL: %" GST_PTR_FORMAT, NULL);
|
||||
GST_LOG ("NULL: %" GST_PTR_FORMAT, (gpointer) NULL);
|
||||
|
||||
/* structure */
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ GST_START_TEST (info_segment_format_printf_extension)
|
|||
}
|
||||
|
||||
/* NULL segment */
|
||||
GST_LOG ("NULL: %" GST_SEGMENT_FORMAT, NULL);
|
||||
GST_LOG ("NULL: %" GST_SEGMENT_FORMAT, (GstSegment *) NULL);
|
||||
|
||||
/* clean up */
|
||||
gst_debug_set_default_threshold (GST_LEVEL_NONE);
|
||||
|
|
Loading…
Reference in a new issue