public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: "BlueZ development" <bluez-devel@lists.sourceforge.net>
Subject: [Bluez-devel] Fix GLIB CRITICAL ** GStreamer - Could not convert static caps
Date: Wed, 20 Feb 2008 12:14:25 +0200	[thread overview]
Message-ID: <e29894ca0802200214j10a5d3f0l2665cb1544e6283f@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

Hi there,

patch attached.

   fix GStreamer critical "Could not convert static caps":
     - remove some trailing ';'
     - stringify attributes value in caps (cosmetic)


-- 
Marc-André Lureau

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-GStreamer-critical-Could-not-convert-static-cap.patch --]
[-- Type: text/x-diff; name=0001-Fix-GStreamer-critical-Could-not-convert-static-cap.patch, Size: 3626 bytes --]

From a644548af176f7a52e4c99d350cb6f88a279392b Mon Sep 17 00:00:00 2001
From: Marc-Andre Lureau <marcandre.lureau@gmail.com>
Date: Wed, 20 Feb 2008 11:37:00 +0200
Subject: [PATCH] Fix GStreamer critical "Could not convert static caps".

fix GStreamer critical "Could not convert static caps":
 - remove some trailing ';'
 - stringify attributes value in caps
---
 audio/gsta2dpsink.c  |    6 +++---
 audio/gstrtpsbcpay.c |    6 +++---
 audio/gstsbcenc.c    |    4 ++--
 audio/gstsbcparse.c  |    4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c
index 0b61e82..d25cbde 100644
--- a/audio/gsta2dpsink.c
+++ b/audio/gsta2dpsink.c
@@ -57,13 +57,13 @@ static GstStaticPadTemplate gst_a2dp_sink_factory =
 			GST_STATIC_CAPS("audio/x-sbc, "
 				"rate = (int) { 16000, 32000, 44100, 48000 }, "
 				"channels = (int) [ 1, 2 ], "
-				"mode = (string) { mono, dual, stereo, joint }, "
+				"mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, "
 				"blocks = (int) { 4, 8, 12, 16 }, "
 				"subbands = (int) { 4, 8 }, "
-				"allocation = (string) { snr, loudness }, "
+				"allocation = (string) { \"snr\", \"loudness\" }, "
 				"bitpool = (int) [ 2, "
 				TEMPLATE_MAX_BITPOOL_STR " ]; "
-				"audio/mpeg;"
+				"audio/mpeg"
 				));
 
 static gboolean gst_a2dp_sink_handle_event(GstPad *pad, GstEvent *event);
diff --git a/audio/gstrtpsbcpay.c b/audio/gstrtpsbcpay.c
index 70f5bef..39cf197 100644
--- a/audio/gstrtpsbcpay.c
+++ b/audio/gstrtpsbcpay.c
@@ -80,11 +80,11 @@ static GstStaticPadTemplate gst_rtp_sbc_pay_sink_factory =
 		GST_STATIC_CAPS("audio/x-sbc, "
 				"rate = (int) { 16000, 32000, 44100, 48000 }, "
 				"channels = (int) [ 1, 2 ], "
-				"mode = (string) { mono, dual, stereo, joint }, "
+				"mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, "
 				"blocks = (int) { 4, 8, 12, 16 }, "
 				"subbands = (int) { 4, 8 }, "
-				"allocation = (string) { snr, loudness },"
-				"bitpool = (int) [ 2, 64 ]; ")
+				"allocation = (string) { \"snr\", \"loudness\" }, "
+				"bitpool = (int) [ 2, 64 ]")
 	);
 
 static GstStaticPadTemplate gst_rtp_sbc_pay_src_factory =
diff --git a/audio/gstsbcenc.c b/audio/gstsbcenc.c
index 03423ec..65e3da5 100644
--- a/audio/gstsbcenc.c
+++ b/audio/gstsbcenc.c
@@ -157,10 +157,10 @@ static GstStaticPadTemplate sbc_enc_src_factory =
 		GST_STATIC_CAPS("audio/x-sbc, "
 				"rate = (int) { 16000, 32000, 44100, 48000 }, "
 				"channels = (int) [ 1, 2 ], "
-				"mode = (string) { mono, dual, stereo, joint }, "
+				"mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, "
 				"blocks = (int) { 4, 8, 12, 16 }, "
 				"subbands = (int) { 4, 8 }, "
-				"allocation = (string) { snr, loudness },"
+				"allocation = (string) { \"snr\", \"loudness\" }, "
 				"bitpool = (int) [ " SBC_ENC_BITPOOL_MIN_STR
 				", " SBC_ENC_BITPOOL_MAX_STR " ]"));
 
diff --git a/audio/gstsbcparse.c b/audio/gstsbcparse.c
index 7b30dd2..4521c56 100644
--- a/audio/gstsbcparse.c
+++ b/audio/gstsbcparse.c
@@ -51,10 +51,10 @@ static GstStaticPadTemplate sbc_parse_src_factory =
 		GST_STATIC_CAPS("audio/x-sbc, "
 				"rate = (int) { 16000, 32000, 44100, 48000 }, "
 				"channels = (int) [ 1, 2 ], "
-				"mode = (string) { mono, dual, stereo, joint }, "
+				"mode = (string) { \"mono\", \"dual\", \"stereo\", \"joint\" }, "
 				"blocks = (int) { 4, 8, 12, 16 }, "
 				"subbands = (int) { 4, 8 }, "
-				"allocation = (string) { snr, loudness },"
+				"allocation = (string) { \"snr\", \"loudness\" },"
 				"bitpool = (int) [ 2, 64 ],"
 				"parsed = (boolean) true"));
 
-- 
1.5.4.1.34.g94bf


[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

                 reply	other threads:[~2008-02-20 10:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e29894ca0802200214j10a5d3f0l2665cb1544e6283f@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox