+2005-05-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * gst/playback/gstplaybasebin.c: (probe_triggered):
+ Fix missing unlock.
+ * gst/playback/gstplaybin.c: (add_sink):
+ First add, then link (otherwise pad link fails).
+
2005-05-19 Zaheer Abbas Merali <zaheerabbas at merali dot org>
* examples/Makefile.am:
* and continue, eventually the other streams will be EOSed and
* we can switch out this group. */
GST_DEBUG ("group %p not completely muted", group);
+
+ GROUP_UNLOCK (play_base_bin);
+
/* remove the EOS if we have something left */
return !have_left;
}
GstPadLinkReturn res;
GstElement *parent;
+ gst_bin_add (GST_BIN (play_bin), sink);
+
/* we found a sink for this stream, now try to install it */
sinkpad = gst_element_get_pad (sink, "sink");
res = gst_pad_link (srcpad, sinkpad);
capsstr = gst_caps_to_string (gst_pad_get_caps (srcpad));
g_warning ("could not link %s", capsstr);
g_free (capsstr);
+
+ gst_bin_remove (GST_BIN (play_bin), sink);
} else {
/* we got the sink succesfully linked, now keep the sink
* in out internal list */
gst_element_set_state (sink,
(GST_STATE (play_bin) == GST_STATE_PLAYING) ?
GST_STATE_PLAYING : GST_STATE_PAUSED);
- gst_bin_add (GST_BIN (play_bin), sink);
}
return res;