From b68d48e6bd9980d8df26a22881078f5031252d05 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Oct 2007 15:00:06 +0000 Subject: [PATCH] gst/playback/gsturidecodebin.c: Implement default signal handler so that we return TRUE when nothing is connected. Original commit message from CVS: * 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. --- ChangeLog | 8 ++++++++ gst/playback/gsturidecodebin.c | 14 ++++++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e6b6caf91a..9e14f4406a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-10-30 Wim Taymans + + * 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 * gst-libs/gst/riff/riff-media.c: diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index 995fd637ac..6d29394456 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -168,6 +168,14 @@ _gst_boolean_accumulator (GSignalInvocationHint * ihint, 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) { @@ -282,6 +290,9 @@ 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 @@ -426,8 +437,7 @@ no_more_pads_full (GstElement * element, gboolean subs, 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);