mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
gst/elements/gstelements.c: Set ranks of elements to NONE, so the autoplugger doesn't use them.
Original commit message from CVS: 2003-12-22 Benjamin Otte <in7y118@public.uni-hamburg.de> * gst/elements/gstelements.c: Set ranks of elements to NONE, so the autoplugger doesn't use them. * gst/elements/gstshaper.c: (gst_shaper_getcaps): Fix proxying to new CAPS stuff. Don't call get_allowed_caps but gst_caps (peer).
This commit is contained in:
parent
56de7957ef
commit
31baf87dd4
5 changed files with 48 additions and 32 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2003-12-22 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* gst/elements/gstelements.c:
|
||||||
|
Set ranks of elements to NONE, so the autoplugger doesn't use them.
|
||||||
|
* gst/elements/gstshaper.c: (gst_shaper_getcaps):
|
||||||
|
Fix proxying to new CAPS stuff. Don't call get_allowed_caps but
|
||||||
|
gst_caps (peer).
|
||||||
|
|
||||||
2003-12-22 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
2003-12-22 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
* gst/autoplug/gstsearchfuncs.c: (gst_autoplug_caps_intersect):
|
* gst/autoplug/gstsearchfuncs.c: (gst_autoplug_caps_intersect):
|
||||||
|
|
|
@ -55,21 +55,21 @@ extern GType gst_filesrc_get_type(void);
|
||||||
extern GstElementDetails gst_filesrc_details;
|
extern GstElementDetails gst_filesrc_details;
|
||||||
|
|
||||||
static struct _elements_entry _elements[] = {
|
static struct _elements_entry _elements[] = {
|
||||||
{ "aggregator", GST_RANK_PRIMARY, gst_aggregator_get_type },
|
{ "aggregator", GST_RANK_NONE, gst_aggregator_get_type },
|
||||||
{ "fakesrc", GST_RANK_PRIMARY, gst_fakesrc_get_type },
|
{ "fakesrc", GST_RANK_NONE, gst_fakesrc_get_type },
|
||||||
{ "fakesink", GST_RANK_PRIMARY, gst_fakesink_get_type },
|
{ "fakesink", GST_RANK_NONE, gst_fakesink_get_type },
|
||||||
{ "fdsink", GST_RANK_PRIMARY, gst_fdsink_get_type },
|
{ "fdsink", GST_RANK_NONE, gst_fdsink_get_type },
|
||||||
{ "fdsrc", GST_RANK_PRIMARY, gst_fdsrc_get_type },
|
{ "fdsrc", GST_RANK_NONE, gst_fdsrc_get_type },
|
||||||
{ "filesrc", GST_RANK_PRIMARY, gst_filesrc_get_type },
|
{ "filesrc", GST_RANK_NONE, gst_filesrc_get_type },
|
||||||
{ "filesink", GST_RANK_PRIMARY, gst_filesink_get_type },
|
{ "filesink", GST_RANK_NONE, gst_filesink_get_type },
|
||||||
{ "identity", GST_RANK_PRIMARY, gst_identity_get_type },
|
{ "identity", GST_RANK_NONE, gst_identity_get_type },
|
||||||
{ "md5sink", GST_RANK_PRIMARY, gst_md5sink_get_type },
|
{ "md5sink", GST_RANK_NONE, gst_md5sink_get_type },
|
||||||
{ "multidisksrc", GST_RANK_PRIMARY, gst_multidisksrc_get_type },
|
{ "multidisksrc", GST_RANK_NONE, gst_multidisksrc_get_type },
|
||||||
{ "pipefilter", GST_RANK_PRIMARY, gst_pipefilter_get_type },
|
{ "pipefilter", GST_RANK_NONE, gst_pipefilter_get_type },
|
||||||
{ "shaper", GST_RANK_PRIMARY, gst_shaper_get_type },
|
{ "shaper", GST_RANK_NONE, gst_shaper_get_type },
|
||||||
{ "statistics", GST_RANK_PRIMARY, gst_statistics_get_type },
|
{ "statistics", GST_RANK_NONE, gst_statistics_get_type },
|
||||||
{ "tee", GST_RANK_PRIMARY, gst_tee_get_type },
|
{ "tee", GST_RANK_NONE, gst_tee_get_type },
|
||||||
{ "typefind", GST_RANK_PRIMARY, gst_type_find_element_get_type },
|
{ "typefind", GST_RANK_NONE, gst_type_find_element_get_type },
|
||||||
{ NULL, 0 },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,11 @@ gst_shaper_getcaps (GstPad *pad)
|
||||||
|
|
||||||
otherpad = (pad == connection->srcpad ? connection->sinkpad : connection->srcpad);
|
otherpad = (pad == connection->srcpad ? connection->sinkpad : connection->srcpad);
|
||||||
|
|
||||||
return gst_caps_copy (gst_pad_get_allowed_caps (otherpad));
|
if (GST_PAD_PEER (otherpad)) {
|
||||||
|
return gst_pad_get_caps (GST_PAD_PEER (otherpad));
|
||||||
|
} else {
|
||||||
|
return gst_caps_new_any ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GList*
|
static GList*
|
||||||
|
|
|
@ -55,21 +55,21 @@ extern GType gst_filesrc_get_type(void);
|
||||||
extern GstElementDetails gst_filesrc_details;
|
extern GstElementDetails gst_filesrc_details;
|
||||||
|
|
||||||
static struct _elements_entry _elements[] = {
|
static struct _elements_entry _elements[] = {
|
||||||
{ "aggregator", GST_RANK_PRIMARY, gst_aggregator_get_type },
|
{ "aggregator", GST_RANK_NONE, gst_aggregator_get_type },
|
||||||
{ "fakesrc", GST_RANK_PRIMARY, gst_fakesrc_get_type },
|
{ "fakesrc", GST_RANK_NONE, gst_fakesrc_get_type },
|
||||||
{ "fakesink", GST_RANK_PRIMARY, gst_fakesink_get_type },
|
{ "fakesink", GST_RANK_NONE, gst_fakesink_get_type },
|
||||||
{ "fdsink", GST_RANK_PRIMARY, gst_fdsink_get_type },
|
{ "fdsink", GST_RANK_NONE, gst_fdsink_get_type },
|
||||||
{ "fdsrc", GST_RANK_PRIMARY, gst_fdsrc_get_type },
|
{ "fdsrc", GST_RANK_NONE, gst_fdsrc_get_type },
|
||||||
{ "filesrc", GST_RANK_PRIMARY, gst_filesrc_get_type },
|
{ "filesrc", GST_RANK_NONE, gst_filesrc_get_type },
|
||||||
{ "filesink", GST_RANK_PRIMARY, gst_filesink_get_type },
|
{ "filesink", GST_RANK_NONE, gst_filesink_get_type },
|
||||||
{ "identity", GST_RANK_PRIMARY, gst_identity_get_type },
|
{ "identity", GST_RANK_NONE, gst_identity_get_type },
|
||||||
{ "md5sink", GST_RANK_PRIMARY, gst_md5sink_get_type },
|
{ "md5sink", GST_RANK_NONE, gst_md5sink_get_type },
|
||||||
{ "multidisksrc", GST_RANK_PRIMARY, gst_multidisksrc_get_type },
|
{ "multidisksrc", GST_RANK_NONE, gst_multidisksrc_get_type },
|
||||||
{ "pipefilter", GST_RANK_PRIMARY, gst_pipefilter_get_type },
|
{ "pipefilter", GST_RANK_NONE, gst_pipefilter_get_type },
|
||||||
{ "shaper", GST_RANK_PRIMARY, gst_shaper_get_type },
|
{ "shaper", GST_RANK_NONE, gst_shaper_get_type },
|
||||||
{ "statistics", GST_RANK_PRIMARY, gst_statistics_get_type },
|
{ "statistics", GST_RANK_NONE, gst_statistics_get_type },
|
||||||
{ "tee", GST_RANK_PRIMARY, gst_tee_get_type },
|
{ "tee", GST_RANK_NONE, gst_tee_get_type },
|
||||||
{ "typefind", GST_RANK_PRIMARY, gst_type_find_element_get_type },
|
{ "typefind", GST_RANK_NONE, gst_type_find_element_get_type },
|
||||||
{ NULL, 0 },
|
{ NULL, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,11 @@ gst_shaper_getcaps (GstPad *pad)
|
||||||
|
|
||||||
otherpad = (pad == connection->srcpad ? connection->sinkpad : connection->srcpad);
|
otherpad = (pad == connection->srcpad ? connection->sinkpad : connection->srcpad);
|
||||||
|
|
||||||
return gst_caps_copy (gst_pad_get_allowed_caps (otherpad));
|
if (GST_PAD_PEER (otherpad)) {
|
||||||
|
return gst_pad_get_caps (GST_PAD_PEER (otherpad));
|
||||||
|
} else {
|
||||||
|
return gst_caps_new_any ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GList*
|
static GList*
|
||||||
|
|
Loading…
Reference in a new issue