From 4e2cf393c0516dbb2ecaa6b8d9b92eae598a30c4 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 3 Feb 2012 22:05:59 +0530 Subject: [PATCH] pulseaudiosink: Lower rank to prevent autoplugging pulseaudiosink breaks visualisations in its current form, so let's prevent it from being autoplugged for the time being. The best we can hope to do in the 0.10 series is query the list of available sinks and their formats, and expose these as the bin's sinkpad caps. While this is not a comprehensive solution, it will make sure that we're only trying to support compressed formats if we're certain that one exists. The long-term fix for this will be in the form of proper upstream renegotiation support in the 0.11/1.0 series. https://bugzilla.gnome.org/show_bug.cgi?id=666361 --- ext/pulse/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pulse/plugin.c b/ext/pulse/plugin.c index 6b2e6b4..04c014f 100644 --- a/ext/pulse/plugin.c +++ b/ext/pulse/plugin.c @@ -50,7 +50,7 @@ plugin_init (GstPlugin * plugin) return FALSE; #ifdef HAVE_PULSE_1_0 - if (!gst_element_register (plugin, "pulseaudiosink", GST_RANK_PRIMARY + 11, + if (!gst_element_register (plugin, "pulseaudiosink", GST_RANK_MARGINAL - 1, GST_TYPE_PULSE_AUDIO_SINK)) return FALSE; #endif -- 2.7.4