mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-23 17:14:23 +00:00
Don't throw compiler warnings with G_DISABLE_ASSERT
Disable code that warns about unused variables when G_DISABLE_ASSERT is defined, as it is in tarballs and pre-releases.
This commit is contained in:
parent
41fae5fa5d
commit
e88ecc367b
1 changed files with 7 additions and 2 deletions
|
@ -625,13 +625,18 @@ void
|
||||||
gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
|
gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg,
|
||||||
GstAudioAggregatorPad * pad, GstCaps * caps)
|
GstAudioAggregatorPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
#ifndef G_DISABLE_ASSERT
|
||||||
gboolean valid;
|
gboolean valid;
|
||||||
|
|
||||||
GST_OBJECT_LOCK (pad);
|
GST_OBJECT_LOCK (pad);
|
||||||
valid = gst_audio_info_from_caps (&pad->info, caps);
|
valid = gst_audio_info_from_caps (&pad->info, caps);
|
||||||
GST_OBJECT_UNLOCK (pad);
|
|
||||||
|
|
||||||
g_assert (valid);
|
g_assert (valid);
|
||||||
|
|
||||||
|
#else
|
||||||
|
GST_OBJECT_LOCK (pad);
|
||||||
|
(void) gst_audio_info_from_caps (&pad->info, caps);
|
||||||
|
GST_OBJECT_UNLOCK (pad);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue