pulseaudiosink: Lower rank to prevent autoplugging
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 3 Feb 2012 16:35:59 +0000 (22:05 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 3 Feb 2012 16:42:06 +0000 (22:12 +0530)
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

index 6b2e6b4..04c014f 100644 (file)
@@ -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