mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 18:35:35 +00:00
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.
This commit is contained in:
parent
a81de45df3
commit
b68d48e6bd
2 changed files with 20 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
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>
|
2007-10-28 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst-libs/gst/riff/riff-media.c:
|
* gst-libs/gst/riff/riff-media.c:
|
||||||
|
|
|
@ -168,6 +168,14 @@ _gst_boolean_accumulator (GSignalInvocationHint * ihint,
|
||||||
return myboolean;
|
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
|
static void
|
||||||
gst_uri_decode_bin_class_init (GstURIDecodeBinClass * klass)
|
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->query = GST_DEBUG_FUNCPTR (gst_uri_decode_bin_query);
|
||||||
gstelement_class->change_state =
|
gstelement_class->change_state =
|
||||||
GST_DEBUG_FUNCPTR (gst_uri_decode_bin_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
|
static void
|
||||||
|
@ -426,8 +437,7 @@ no_more_pads_full (GstElement * element, gboolean subs,
|
||||||
g_object_set_data (G_OBJECT (element), "pending", NULL);
|
g_object_set_data (G_OBJECT (element), "pending", NULL);
|
||||||
|
|
||||||
decoder->pending--;
|
decoder->pending--;
|
||||||
if (decoder->pending != 0)
|
final = (decoder->pending == 0);
|
||||||
final = FALSE;
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
GST_OBJECT_UNLOCK (decoder);
|
GST_OBJECT_UNLOCK (decoder);
|
||||||
|
|
Loading…
Reference in a new issue