public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gstreamer a2dp as marginal plugin
@ 2009-07-01 11:15 Filippo Giunchedi
  2009-07-01 11:15 ` [PATCH] Register the a2dp gst sink as marginal Filippo Giunchedi
  2009-07-03 14:47 ` [PATCH] gstreamer a2dp as marginal plugin Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Filippo Giunchedi @ 2009-07-01 11:15 UTC (permalink / raw)
  To: linux-bluetooth

This patch avoids taking over the default output sink by registering a2dp as
RANK_MARGINAL.
I'm not sure this is desiderable in general but at least autoaudiosink does the
right thing and selects ALSA/OSS which are RANK_PRIMARY.

Filippo Giunchedi (1):
  Register the a2dp gst sink as marginal

 audio/gsta2dpsink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Register the a2dp gst sink as marginal
  2009-07-01 11:15 [PATCH] gstreamer a2dp as marginal plugin Filippo Giunchedi
@ 2009-07-01 11:15 ` Filippo Giunchedi
  2009-07-03 14:47 ` [PATCH] gstreamer a2dp as marginal plugin Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Filippo Giunchedi @ 2009-07-01 11:15 UTC (permalink / raw)
  To: linux-bluetooth

Avoid taking over as default gst sink by registering as GST_RANK_MARGINAL
---
 audio/gsta2dpsink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c
index b6df119..0753f38 100644
--- a/audio/gsta2dpsink.c
+++ b/audio/gsta2dpsink.c
@@ -698,6 +698,6 @@ static void gst_a2dp_sink_init(GstA2dpSink *self,
 gboolean gst_a2dp_sink_plugin_init(GstPlugin *plugin)
 {
 	return gst_element_register(plugin, "a2dpsink",
-			GST_RANK_PRIMARY, GST_TYPE_A2DP_SINK);
+			GST_RANK_MARGINAL, GST_TYPE_A2DP_SINK);
 }
 
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gstreamer a2dp as marginal plugin
  2009-07-01 11:15 [PATCH] gstreamer a2dp as marginal plugin Filippo Giunchedi
  2009-07-01 11:15 ` [PATCH] Register the a2dp gst sink as marginal Filippo Giunchedi
@ 2009-07-03 14:47 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2009-07-03 14:47 UTC (permalink / raw)
  To: linux-bluetooth

Hi Filippo,

On Wed, Jul 01, 2009, Filippo Giunchedi wrote:
> This patch avoids taking over the default output sink by registering a2dp as
> RANK_MARGINAL.
> I'm not sure this is desiderable in general but at least autoaudiosink does the
> right thing and selects ALSA/OSS which are RANK_PRIMARY.
> 
> Filippo Giunchedi (1):
>   Register the a2dp gst sink as marginal
> 
>  audio/gsta2dpsink.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

This one has been pushed upstream too.

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-03 14:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 11:15 [PATCH] gstreamer a2dp as marginal plugin Filippo Giunchedi
2009-07-01 11:15 ` [PATCH] Register the a2dp gst sink as marginal Filippo Giunchedi
2009-07-03 14:47 ` [PATCH] gstreamer a2dp as marginal plugin Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox