mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
pad: handle NULL callbacks
When we have a matching NULL callback, also consider the 'callback' marshalled, this way blocking probes with a NULL callback actually work.
This commit is contained in:
parent
ef5292c2ab
commit
c105b467fa
1 changed files with 2 additions and 1 deletions
|
@ -2849,6 +2849,8 @@ probe_hook_marshal (GHook * hook, ProbeMarshall * data)
|
|||
"hook %lu, cookie %u with flags 0x%08x matches", hook->hook_id,
|
||||
PROBE_COOKIE (hook), flags);
|
||||
|
||||
data->marshalled = TRUE;
|
||||
|
||||
callback = (GstPadProbeCallback) hook->func;
|
||||
if (callback == NULL)
|
||||
return;
|
||||
|
@ -2860,7 +2862,6 @@ probe_hook_marshal (GHook * hook, ProbeMarshall * data)
|
|||
ret = callback (pad, info, hook->data);
|
||||
|
||||
GST_OBJECT_LOCK (pad);
|
||||
data->marshalled = TRUE;
|
||||
|
||||
switch (ret) {
|
||||
case GST_PAD_PROBE_REMOVE:
|
||||
|
|
Loading…
Reference in a new issue