mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
TrackObject: fixe a crash in connect_signal
This commit is contained in:
parent
54ed9b1709
commit
d6945879a0
1 changed files with 1 additions and 3 deletions
|
@ -513,9 +513,7 @@ gst_element_prop_changed_cb (GstElement * element, GParamSpec * arg
|
|||
static void
|
||||
connect_signal (gpointer key, gpointer value, gpointer user_data)
|
||||
{
|
||||
gchar **name = g_strsplit ((char *) key, "-", 2);
|
||||
gchar *signame = g_strconcat ("notify::", (gchar *) name[1], NULL);
|
||||
g_strfreev (name);
|
||||
gchar *signame = g_strconcat ("notify::", G_PARAM_SPEC (key)->name, NULL);
|
||||
|
||||
g_signal_connect (G_OBJECT (value),
|
||||
signame, G_CALLBACK (gst_element_prop_changed_cb),
|
||||
|
|
Loading…
Reference in a new issue