mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-11-05 16:26:16 +00:00
pinospay: don't do logic in g_assert
We still want to code to execute when asserts are disabled.
This commit is contained in:
parent
b3d07070f5
commit
00aed12909
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue