[rygel] media-export: Fix DVD DLNA profile and extension



commit 162852e488cc3b44fd0c536e71eb7e1fe3bbadbd
Author: Jens Georg <mail jensge org>
Date:   Wed Feb 10 23:03:02 2016 +0100

    media-export: Fix DVD DLNA profile and extension
    
    Without extension "mpg", Kodi thinks it's an ISO and tries to open it with its
    libdvdread parser.
    
    Also, use the video standard information from the XML to set the proper
    MPEG_PS_* DLNA profile. This makes DVD support work in at least LG BDP and WD
    TV Live
    
    Signed-off-by: Jens Georg <mail jensge org>

 .../rygel-media-export-dvd-container.vala          |    5 +++++
 .../media-export/rygel-media-export-dvd-track.vala |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-dvd-container.vala 
b/src/plugins/media-export/rygel-media-export-dvd-container.vala
index 7e60cf1..cf4f3e7 100644
--- a/src/plugins/media-export/rygel-media-export-dvd-container.vala
+++ b/src/plugins/media-export/rygel-media-export-dvd-container.vala
@@ -171,7 +171,12 @@ internal class Rygel.MediaExport.DVDContainer : SimpleContainer, UpdatableObject
                 item.width = int.parse (it->children->content);
             } else if (it->name == "height") {
                 item.height = int.parse (it->children->content);
+            } else if (it->name == "PAL") {
+                item.dlna_profile = "MPEG_PS_PAL";
+            } else if (it->name == "NTSC") {
+                item.dlna_profile = "MPEG_PS_NTSC";
             }
+            // TODO: Japanese formats...
             it = it->next;
         }
 
diff --git a/src/plugins/media-export/rygel-media-export-dvd-track.vala 
b/src/plugins/media-export/rygel-media-export-dvd-track.vala
index 0820121..d42e1d3 100644
--- a/src/plugins/media-export/rygel-media-export-dvd-track.vala
+++ b/src/plugins/media-export/rygel-media-export-dvd-track.vala
@@ -34,6 +34,7 @@ internal class Rygel.MediaExport.DVDTrack : Rygel.VideoItem {
 
         // We don't have proper access to tbe bytes, but time seek should week
         res.dlna_operation = DLNAOperation.TIMESEEK;
+        res.extension = "mpg";
 
         return res;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]