+2007-10-30 Wim Taymans <wim.taymans@gmail.com>
+
+ * gst/playback/gsturidecodebin.c:
+ (gst_uri_decode_bin_autoplug_continue),
+ (gst_uri_decode_bin_class_init), (no_more_pads_full):
+ Implement default signal handler so that we return TRUE when nothing is
+ connected.
+
2007-10-28 Sebastian Dröge <slomo@circular-chaos.org>
* gst-libs/gst/riff/riff-media.c:
return myboolean;
}
+static gboolean
+gst_uri_decode_bin_autoplug_continue (GstElement * element, GstPad * pad,
+ GstCaps * caps)
+{
+ /* by default we always continue */
+ return TRUE;
+}
+
static void
gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
{
gstelement_class->query = GST_DEBUG_FUNCPTR (gst_uri_decode_bin_query);
gstelement_class->change_state =
GST_DEBUG_FUNCPTR (gst_uri_decode_bin_change_state);
+
+ klass->autoplug_continue =
+ GST_DEBUG_FUNCPTR (gst_uri_decode_bin_autoplug_continue);
}
static void
g_object_set_data (G_OBJECT (element), "pending", NULL);
decoder->pending--;
- if (decoder->pending != 0)
- final = FALSE;
+ final = (decoder->pending == 0);
done:
GST_OBJECT_UNLOCK (decoder);