From: Sebastian Dröge Date: Tue, 16 Jul 2013 10:21:44 +0000 (+0200) Subject: playbin: Don't prefer decoders for which we found a matching sink X-Git-Tag: 1.19.3~511^2~5187 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=432b09224701aac969b2c161109fddcc664e572d;p=platform%2Fupstream%2Fgstreamer.git playbin: Don't prefer decoders for which we found a matching sink It doesn't make much sense. --- diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 0fd4a731ec..5f307b9631 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -3559,12 +3559,6 @@ avelement_compare (gconstpointer p1, gconstpointer p2) v2_rank = gst_plugin_feature_get_rank (fd2) * gst_plugin_feature_get_rank (fs2); } else { - /* If one has a sink, prefer that one */ - if (v1->sink) - return -1; - else if (v2->sink) - return 1; - v1_rank = gst_plugin_feature_get_rank (fd1); v2_rank = gst_plugin_feature_get_rank (fd2); fs1 = fs2 = NULL;