decodebin2: Keep the chain mutex locked while connecting to the notify::caps signal

This commit is contained in:
Sebastian Dröge 2011-08-31 12:39:18 +02:00
parent 33d491a04f
commit 425d3ae7bc

View file

@ -1616,9 +1616,9 @@ setup_caps_delay:
ppad->event_probe_id =
gst_pad_add_event_probe (pad, (GCallback) pad_event_cb, ppad);
chain->pending_pads = g_list_prepend (chain->pending_pads, ppad);
CHAIN_MUTEX_UNLOCK (chain);
g_signal_connect (G_OBJECT (pad), "notify::caps",
G_CALLBACK (caps_notify_cb), chain);
CHAIN_MUTEX_UNLOCK (chain);
return;
}
}