[rygel] core, playbin: Fix LPCM playback
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core, playbin: Fix LPCM playback
- Date: Wed, 13 Jun 2012 11:16:09 +0000 (UTC)
commit d507b544ebfe4d57ca385ee7f02df8f9210df720
Author: Jens Georg <mail jensge org>
Date: Wed Jun 13 13:02:15 2012 +0200
core, playbin: Fix LPCM playback
https://bugzilla.gnome.org/show_bug.cgi?id=677966
src/plugins/playbin/rygel-playbin-player.vala | 9 ++++++---
src/rygel/rygel-av-transport.vala | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/playbin/rygel-playbin-player.vala b/src/plugins/playbin/rygel-playbin-player.vala
index 0949d57..7342fdd 100644
--- a/src/plugins/playbin/rygel-playbin-player.vala
+++ b/src/plugins/playbin/rygel-playbin-player.vala
@@ -45,6 +45,11 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
"audio/x-wav",
"audio/x-ac3",
"audio/x-m4a",
+ "audio/L16;rate=44100;channels=2",
+ "audio/L16;rate=44100;channels=1",
+ "audio/L16;channels=2;rate=44100",
+ "audio/L16;channels=1;rate=44100",
+ "audio/L16;rate=44100",
"image/jpeg",
"image/png",
"video/x-theora",
@@ -63,9 +68,7 @@ public class Rygel.Playbin.Player : GLib.Object, Rygel.MediaPlayer {
"video/mp4",
"video/x-ms-asf",
"video/x-xvid",
- "video/x-ms-wmv",
- "audio/L16;rate=44100;channels=2",
- "audio/L16;rate=44100;channels=1" };
+ "video/x-ms-wmv" };
private static Player player;
private dynamic Element playbin;
diff --git a/src/rygel/rygel-av-transport.vala b/src/rygel/rygel-av-transport.vala
index c904099..f04e7b5 100644
--- a/src/rygel/rygel-av-transport.vala
+++ b/src/rygel/rygel-av-transport.vala
@@ -255,7 +255,7 @@ internal class Rygel.AVTransport : Service {
return;
} else {
- var mime = msg.response_headers.get_content_type (null);
+ var mime = msg.response_headers.get_one ("Content-Type");
if (mime != null &&
!(mime in this.player.get_mime_types ())) {
action.return_error (714, "Illegal MIME-type");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]