pinospay: don't do logic in g_assert

We still want to code to execute when asserts are disabled.
This commit is contained in:
Ognyan Tonchev 2016-03-09 10:49:22 +01:00 committed by Wim Taymans
parent b3d07070f5
commit 00aed12909

View file

@ -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: