mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
parse: Fix a critical when using the : operator.
Fix "has no handler with id" output criticals when the : multilink operator is used. These were caused by disconnecting a signal handler multiple times. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/846>
This commit is contained in:
parent
ba294415d7
commit
df52bdc5d4
1 changed files with 3 additions and 2 deletions
|
@ -566,10 +566,11 @@ static void gst_parse_found_pad (GstElement *src, GstPad *pad, gpointer data)
|
||||||
link->all_pads ? "all pads" : "one pad",
|
link->all_pads ? "all pads" : "one pad",
|
||||||
PRETTY_PAD_NAME_ARGS (src, link->src_pad),
|
PRETTY_PAD_NAME_ARGS (src, link->src_pad),
|
||||||
PRETTY_PAD_NAME_ARGS (link->sink, link->sink_pad));
|
PRETTY_PAD_NAME_ARGS (link->sink, link->sink_pad));
|
||||||
g_signal_handler_disconnect (src, link->no_more_pads_signal_id);
|
|
||||||
/* releases 'link' */
|
/* releases 'link' */
|
||||||
if (!link->all_pads)
|
if (!link->all_pads) {
|
||||||
|
g_signal_handler_disconnect (src, link->no_more_pads_signal_id);
|
||||||
g_signal_handler_disconnect (src, link->pad_added_signal_id);
|
g_signal_handler_disconnect (src, link->pad_added_signal_id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue