[rygel] server: Add subtitle mime_type hack for LG



commit cbec35a7853601047759643de85bfc6dd0f2a1d8
Author: Jens Georg <mail jensge org>
Date:   Sun Jan 12 19:50:12 2020 +0100

    server: Add subtitle mime_type hack for LG
    
    Fixes #84

 src/librygel-server/rygel-lg-tv-hacks.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/librygel-server/rygel-lg-tv-hacks.vala b/src/librygel-server/rygel-lg-tv-hacks.vala
index e19cfc80..1b75c901 100644
--- a/src/librygel-server/rygel-lg-tv-hacks.vala
+++ b/src/librygel-server/rygel-lg-tv-hacks.vala
@@ -41,6 +41,8 @@ internal class Rygel.LGTVHacks : ClientHacks {
                 resource.mime_type = "video/avi";
             } else if (resource.mime_type == "video/mp4") {
                 resource.dlna_profile = null;
+            } else if (resource.mime_type == "application/subrip") {
+                resource.mime_type = "text/srt";
             }
         }
 


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