mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05: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;
|
PinosPacketReleaseFDPayload p;
|
||||||
gint id;
|
gint id;
|
||||||
|
gboolean res;
|
||||||
|
|
||||||
if (!pinos_buffer_iter_parse_release_fd_payload (&it, &p))
|
if (!pinos_buffer_iter_parse_release_fd_payload (&it, &p))
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -221,7 +222,8 @@ client_buffer_received (GstPinosPay *pay, GstBuffer *buffer,
|
||||||
id = p.id;
|
id = p.id;
|
||||||
|
|
||||||
GST_LOG ("%p: fd index %d is released", hash, 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;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue