[rygel/rygel-0-16] server: Fix thumbnails for XBox 360
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/rygel-0-16] server: Fix thumbnails for XBox 360
- Date: Thu, 1 Nov 2012 22:58:33 +0000 (UTC)
commit 46c8a2f42d182486b29f782997e782addb009aeb
Author: Jens Georg <jensg openismus com>
Date: Thu Nov 1 23:57:01 2012 +0100
server: Fix thumbnails for XBox 360
If a video file needed transcoding for the XBox, it would not display a
thumbnail because the generated url was adding the /th/ subrequest on top of
the /tr/ request.
This caused a "no transcoder available for WMVHIGH_FULL.wmv" warning as well
as a failing thumbnail request.
src/librygel-server/rygel-xbox-hacks.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/librygel-server/rygel-xbox-hacks.vala b/src/librygel-server/rygel-xbox-hacks.vala
index fc4e3dd..33b33b6 100644
--- a/src/librygel-server/rygel-xbox-hacks.vala
+++ b/src/librygel-server/rygel-xbox-hacks.vala
@@ -55,7 +55,12 @@ internal class Rygel.XBoxHacks : ClientHacks {
return;
}
- uri.set_path (uri.get_path () + "/th/0");
+ var path = uri.get_path ();
+ var particles = path.split ("/")[0:4];
+ particles += "th";
+ particles += "0";
+
+ uri.set_path (string.joinv("/", particles));
}
public void apply_on_device (RootDevice device,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]