Use new GST_ENABLE_EXTRA_CHECKS #define

https://bugzilla.gnome.org/show_bug.cgi?id=756870
This commit is contained in:
Sebastian Dröge 2015-10-20 17:29:42 +03:00
parent 539265fcc5
commit 1efb451154
3 changed files with 4 additions and 3 deletions

View file

@ -81,6 +81,7 @@ AG_GST_GETTEXT([gstreamer-$GST_API_VERSION])
dnl *** check for arguments to configure *** dnl *** check for arguments to configure ***
AG_GST_ARG_DISABLE_FATAL_WARNINGS AG_GST_ARG_DISABLE_FATAL_WARNINGS
AG_GST_ARG_ENABLE_EXTRA_CHECKS
dnl subsystems - can influence other decisions so needs to be high up dnl subsystems - can influence other decisions so needs to be high up
dnl we need to AM_CONDITIONAL them here for automake 1.6.x compatibility dnl we need to AM_CONDITIONAL them here for automake 1.6.x compatibility

View file

@ -4054,7 +4054,7 @@ gst_pad_chain_data_unchecked (GstPad * pad, GstPadProbeType type, void *data)
if (G_UNLIKELY (GST_PAD_MODE (pad) != GST_PAD_MODE_PUSH)) if (G_UNLIKELY (GST_PAD_MODE (pad) != GST_PAD_MODE_PUSH))
goto wrong_mode; goto wrong_mode;
#ifndef G_DISABLE_ASSERT #ifdef GST_ENABLE_EXTRA_CHECKS
if (G_UNLIKELY (pad->priv->last_cookie != pad->priv->events_cookie)) { if (G_UNLIKELY (pad->priv->last_cookie != pad->priv->events_cookie)) {
if (!find_event_by_type (pad, GST_EVENT_STREAM_START, 0)) { if (!find_event_by_type (pad, GST_EVENT_STREAM_START, 0)) {
g_warning (G_STRLOC g_warning (G_STRLOC
@ -4307,7 +4307,7 @@ gst_pad_push_data (GstPad * pad, GstPadProbeType type, void *data)
if (G_UNLIKELY (GST_PAD_MODE (pad) != GST_PAD_MODE_PUSH)) if (G_UNLIKELY (GST_PAD_MODE (pad) != GST_PAD_MODE_PUSH))
goto wrong_mode; goto wrong_mode;
#ifndef G_DISABLE_ASSERT #ifdef GST_ENABLE_EXTRA_CHECKS
if (G_UNLIKELY (pad->priv->last_cookie != pad->priv->events_cookie)) { if (G_UNLIKELY (pad->priv->last_cookie != pad->priv->events_cookie)) {
if (!find_event_by_type (pad, GST_EVENT_STREAM_START, 0)) { if (!find_event_by_type (pad, GST_EVENT_STREAM_START, 0)) {
g_warning (G_STRLOC g_warning (G_STRLOC

View file

@ -536,7 +536,7 @@ gst_base_transform_transform_caps (GstBaseTransform * trans,
ret = klass->transform_caps (trans, direction, caps, filter); ret = klass->transform_caps (trans, direction, caps, filter);
GST_LOG_OBJECT (trans, " to: %" GST_PTR_FORMAT, ret); GST_LOG_OBJECT (trans, " to: %" GST_PTR_FORMAT, ret);
#ifndef G_DISABLE_ASSERT #ifdef GST_ENABLE_EXTRA_CHECKS
if (filter) { if (filter) {
if (!gst_caps_is_subset (ret, filter)) { if (!gst_caps_is_subset (ret, filter)) {
GstCaps *intersection; GstCaps *intersection;