implement parsing of srt subtitles with 8859-15 encoding
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Thu, 9 Oct 2008 12:32:25 +0000 (12:32 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Thu, 9 Oct 2008 12:32:25 +0000 (12:32 +0000)
lib/service/servicedvb.h
lib/service/servicemp3.cpp

index 0bd12bd..bae0c6e 100644 (file)
@@ -81,7 +81,7 @@ public:
        PyObject *getAll(bool original); // a sum of getFrontendData/Status/TransponderData
 };
 
-class eSubtitleWidget; 
+class eSubtitleWidget;
 
 class eDVBServicePlay: public eDVBServiceBase,
                public iPlayableService, public iPauseableService, 
index 5181ce6..7649582 100644 (file)
@@ -378,6 +378,7 @@ eServiceMP3::eServiceMP3(const char *filename): m_filename(filename), m_pump(eAp
                                g_object_set (G_OBJECT(switch_subtitles), "select-all", TRUE, NULL);
                                g_object_set (G_OBJECT(sink), "signal-handoffs", TRUE, NULL);
                                g_object_set (G_OBJECT(sink), "sync", TRUE, NULL);
+                               g_object_set (G_OBJECT(parser), "subtitle-encoding", "ISO-8859-15", NULL);
                                g_signal_connect(sink, "handoff", G_CALLBACK(gstCBsubtitleAvail), this);
                                subtitleStream subs;
                                subs.language_code = std::string(".srt file");