From: ghost Date: Thu, 3 Sep 2009 09:27:18 +0000 (+0200) Subject: fix srt subtitles X-Git-Tag: 2.6.0~77^2~3 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/884a9bb30ff4a4715e96207269d149c304ecfc1d?hp=ffb0dd9e6ec7741b62a6f382000a237bde12e561;ds=sidebyside fix srt subtitles --- diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 149a1906..7d5901e2 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -497,6 +497,8 @@ RESULT eServiceMP3::seekTo(pts_t to) if (!m_gst_playbin) return -1; + eSingleLocker l(m_subs_to_pull_lock); // this is needed to dont handle incomming subtitles during seek! + /* convert pts to nanoseconds */ gint64 time_nanoseconds = to * 11111LL; if (!gst_element_seek (m_gst_playbin, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, @@ -508,7 +510,6 @@ RESULT eServiceMP3::seekTo(pts_t to) } m_subtitle_pages.clear(); - eSingleLocker l(m_subs_to_pull_lock); m_subs_to_pull = 0; return 0;