diff options
author | Jan Schmidt <jan@centricular.com> | 2015-09-18 00:20:13 +1000 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2015-09-18 00:29:51 +1000 |
commit | 587e7c4a23d8364f13e3710cea75d4a72b2b301f (patch) | |
tree | 9e49f13dcbee20af2b3823dab726c28ec7ab12af /ext/dtls/gstdtlsconnection.c | |
parent | f82840ce88a159de7cbd2afe8cd2f32843c9105d (diff) | |
download | gstreamer-plugins-bad-587e7c4a23d8364f13e3710cea75d4a72b2b301f.tar.gz |
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.
Diffstat (limited to 'ext/dtls/gstdtlsconnection.c')
-rw-r--r-- | ext/dtls/gstdtlsconnection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/dtls/gstdtlsconnection.c b/ext/dtls/gstdtlsconnection.c index 3369a1462..36f6d635f 100644 --- a/ext/dtls/gstdtlsconnection.c +++ b/ext/dtls/gstdtlsconnection.c @@ -355,12 +355,18 @@ gst_dtls_connection_check_timeout_locked (GstDtlsConnection * self) GST_DEBUG_OBJECT (self, "waiting for %" G_GINT64_FORMAT " usec", wait_time); if (wait_time) { GstClockID clock_id; +#ifndef G_DISABLE_ASSERT GstClockReturn clock_return; +#endif end_time = gst_clock_get_time (system_clock) + wait_time * GST_USECOND; clock_id = gst_clock_new_single_shot_id (system_clock, end_time); +#ifndef G_DISABLE_ASSERT clock_return = +#else + (void) +#endif gst_clock_id_wait_async (clock_id, schedule_timeout_handling, g_object_ref (self), (GDestroyNotify) g_object_unref); g_assert (clock_return == GST_CLOCK_OK); |