[rygel] server: Fix thumbnails for XBox 360
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: Fix thumbnails for XBox 360
- Date: Thu, 1 Nov 2012 22:59:14 +0000 (UTC)
commit 7ed1545a1de8948720e590ab3d6b36b545778f11
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]