diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-03-23 15:29:29 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-03-23 15:29:42 -0400 |
commit | 1504e2c7881947b9917c17aa5f3e14d6ec7d5807 (patch) | |
tree | 8eab6c4bcf547329c78428ad35005e31ca96f903 | |
parent | 629cc095af3b031dd4661377608f3718b59575ed (diff) | |
download | farstream-1504e2c7881947b9917c17aa5f3e14d6ec7d5807.tar.gz |
Ignore rank==0 from auto discovery
-rw-r--r-- | gst/fsrtpconference/fs-rtp-discover-codecs.c | 6 |
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; |