mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
gst/playback/gstplaybasebin.c: Set is_dynamic as True if there are elements with both request and sometimes src pad t...
Original commit message from CVS: * gst/playback/gstplaybasebin.c: Set is_dynamic as True if there are elements with both request and sometimes src pad templates instead of breaking out when it finds the first pad template that is a src.
This commit is contained in:
parent
8732cbbd47
commit
b006ba7afe
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-02-09 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||
|
||||
* gst/playback/gstplaybasebin.c:
|
||||
Set is_dynamic as True if there are elements with both request
|
||||
and sometimes src pad templates instead of breaking out when it
|
||||
finds the first pad template that is a src.
|
||||
|
||||
2008-02-08 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* tests/examples/seek/seek.c: (stop_cb), (clear_streams),
|
||||
|
|
|
@ -1907,9 +1907,13 @@ analyse_source (GstPlayBaseBin * play_base_bin, gboolean * is_raw,
|
|||
|
||||
templ = (GstPadTemplate *) walk->data;
|
||||
if (GST_PAD_TEMPLATE_DIRECTION (templ) == GST_PAD_SRC) {
|
||||
if (GST_PAD_TEMPLATE_PRESENCE (templ) == GST_PAD_SOMETIMES)
|
||||
if (GST_PAD_TEMPLATE_PRESENCE (templ) == GST_PAD_SOMETIMES) {
|
||||
*is_dynamic = TRUE;
|
||||
break;
|
||||
break; /* only break out if we found a sometimes src pad
|
||||
continue walking through if say a request src pad is found
|
||||
elements such as mpegtsparse and dvbbasebin have request
|
||||
and sometimes src pads */
|
||||
}
|
||||
}
|
||||
walk = g_list_next (walk);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue