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:
Zaheer Abbas Merali 2008-02-09 10:41:36 +00:00
parent 8732cbbd47
commit b006ba7afe
2 changed files with 13 additions and 2 deletions

View file

@ -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),

View file

@ -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);
}