From 00aed12909df8deabd8c3de399f0feb017951d8c Mon Sep 17 00:00:00 2001 From: Ognyan Tonchev Date: Wed, 9 Mar 2016 10:49:22 +0100 Subject: [PATCH] pinospay: don't do logic in g_assert We still want to code to execute when asserts are disabled. --- pinos/gst/gstpinospay.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pinos/gst/gstpinospay.c b/pinos/gst/gstpinospay.c index 619333dfb..41388fbb3 100644 --- a/pinos/gst/gstpinospay.c +++ b/pinos/gst/gstpinospay.c @@ -214,6 +214,7 @@ client_buffer_received (GstPinosPay *pay, GstBuffer *buffer, { PinosPacketReleaseFDPayload p; gint id; + gboolean res; if (!pinos_buffer_iter_parse_release_fd_payload (&it, &p)) continue; @@ -221,7 +222,8 @@ client_buffer_received (GstPinosPay *pay, GstBuffer *buffer, id = p.id; GST_LOG ("%p: fd index %d is released", hash, id); - g_assert (g_hash_table_remove (hash, GINT_TO_POINTER (id))); + res = g_hash_table_remove (hash, GINT_TO_POINTER (id)); + g_assert (res); break; } default: