aboutsummaryrefslogtreecommitdiff
path: root/lib/service/servicemp3.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2010-12-02 11:24:40 +0100
committerghost <andreas.monzner@multimedia-labs.de>2010-12-02 11:24:40 +0100
commitb9c0b3c8ec8c7979848126d9c88764043d685d26 (patch)
treeae51b68dc369146e0e3d06cbeffce57e773066e3 /lib/service/servicemp3.cpp
parent05d902ffb1a0dfb03cbb69324ceb20439b73c977 (diff)
downloadenigma2-b9c0b3c8ec8c7979848126d9c88764043d685d26.tar.gz
enigma2-b9c0b3c8ec8c7979848126d9c88764043d685d26.zip
switch appsink to async again (fixes embedded mkv text subtitles)
Diffstat (limited to 'lib/service/servicemp3.cpp')
-rw-r--r--lib/service/servicemp3.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp
index 8628c269..42f84206 100644
--- a/lib/service/servicemp3.cpp
+++ b/lib/service/servicemp3.cpp
@@ -1252,16 +1252,16 @@ void eServiceMP3::gstBusCall(GstBus *bus, GstMessage *msg)
} break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
{
-// GstElement *appsink = gst_bin_get_by_name(GST_BIN(m_gst_subtitlebin), "subtitle_sink");
+ GstElement *appsink = gst_bin_get_by_name(GST_BIN(m_gst_subtitlebin), "subtitle_sink");
// GstElement *appsink = gst_bin_get_by_name(GST_BIN(m_gst_playbin), "subtitle_sink");
-// if (appsink)
-// {
-// g_object_set (G_OBJECT (appsink), "max-buffers", 2, NULL);
-// g_object_set (G_OBJECT (appsink), "sync", FALSE, NULL);
-// g_object_set (G_OBJECT (appsink), "emit-signals", TRUE, NULL);
-// eDebug("eServiceMP3::appsink properties set!");
-// gst_object_unref(appsink);
-// }
+ if (appsink)
+ {
+ g_object_set (G_OBJECT (appsink), "max-buffers", 2, NULL);
+ g_object_set (G_OBJECT (appsink), "sync", FALSE, NULL);
+ g_object_set (G_OBJECT (appsink), "emit-signals", TRUE, NULL);
+ eDebug("eServiceMP3::appsink properties set!");
+ gst_object_unref(appsink);
+ }
setAC3Delay(ac3_delay);
setPCMDelay(pcm_delay);
} break;