Using format-patch now. Please let me know if you want it sent in other way.

-- john
From 871e3e51d894c8ed61ff46f8c49f8c48eb66b707 Mon Sep 17 00:00:00 2001
From: John Obaterspok <[email protected]>
Date: Mon, 9 Dec 2013 19:41:38 +0100
Subject: [PATCH] Add Samsung [DE]-Series TV workaround for mp2t and quicktime
 movies

---
 src/librygel-server/rygel-samsung-tv-hacks.vala | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/librygel-server/rygel-samsung-tv-hacks.vala b/src/librygel-server/rygel-samsung-tv-hacks.vala
index 60127c5..a6465a9 100644
--- a/src/librygel-server/rygel-samsung-tv-hacks.vala
+++ b/src/librygel-server/rygel-samsung-tv-hacks.vala
@@ -36,6 +36,16 @@ internal class Rygel.SamsungTVHacks : ClientHacks {
         var item = object as MediaItem;
         if (item.mime_type == "video/x-matroska") {
             item.mime_type = "video/x-mkv";
+        } 
+        else if (item.mime_type == "video/mp2t") {
+            // Required to play Panasonic TZ-7 AVCHD-Lite movies. Verified on D+E-Series TV
+            // Example: http://s3.amazonaws.com/movies.dpreview.com/panasonic_dmcfz150/00015.MTS
+            item.mime_type = "video/vnd.dlna.mpeg-tts";
+        } 
+        else if (item.mime_type == "video/quicktime") {
+            // Required to play Canon EOS camera movies. Verfied on D-Series TV (E-Series still don't work)
+            // Example: http://s3.amazonaws.com/movies.dpreview.com/canon_eos60d/MVI_1326.MOV
+            item.mime_type = "video/mp4";
         }
     }
 
-- 
1.8.3.1

_______________________________________________
rygel-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/rygel-list

Reply via email to