summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-23 15:29:29 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-03-23 15:29:42 -0400
commit1504e2c7881947b9917c17aa5f3e14d6ec7d5807 (patch)
tree8eab6c4bcf547329c78428ad35005e31ca96f903
parent629cc095af3b031dd4661377608f3718b59575ed (diff)
downloadfarstream-1504e2c7881947b9917c17aa5f3e14d6ec7d5807.tar.gz
Ignore rank==0 from auto discovery
-rw-r--r--gst/fsrtpconference/fs-rtp-discover-codecs.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/fsrtpconference/fs-rtp-discover-codecs.c b/gst/fsrtpconference/fs-rtp-discover-codecs.c
index 5b26cd90..0f85519d 100644
--- a/gst/fsrtpconference/fs-rtp-discover-codecs.c
+++ b/gst/fsrtpconference/fs-rtp-discover-codecs.c
@@ -1295,9 +1295,13 @@ get_plugins_filtered_from_caps (FilterFunc filter,
{
GstElementFactory *factory = GST_ELEMENT_FACTORY (walk->data);
+ /* Ignore unranked plugins */
+ if (gst_plugin_feature_get_rank (factory) == GST_RANK_NONE)
+ continue;
+
if (!filter (factory))
continue;
-
+
if (caps && !check_caps_compatibility (factory, caps, &matched_caps))
continue;