diff options
| author | Mladen Horvat <acid-burn@opendreambox.org> | 2009-12-07 14:32:38 +0100 |
|---|---|---|
| committer | Mladen Horvat <acid-burn@opendreambox.org> | 2009-12-07 14:32:38 +0100 |
| commit | c76c1366714e6f834d89034c2ecf434d7658bc2b (patch) | |
| tree | 60e573000fb506933aa5869da92ecdb46ce54482 /lib/service/servicemp3.cpp | |
| parent | 28d283c49a8791cc84d70877275f232d5cb526ce (diff) | |
| parent | 296b611baa6c7d557522449147dfa020cea9cc18 (diff) | |
| download | enigma2-c76c1366714e6f834d89034c2ecf434d7658bc2b.tar.gz enigma2-c76c1366714e6f834d89034c2ecf434d7658bc2b.zip | |
Merge branch 'experimental' of acidburn@git.opendreambox.org:/git/enigma2 into experimental
Diffstat (limited to 'lib/service/servicemp3.cpp')
| -rw-r--r-- | lib/service/servicemp3.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 0f604b84..c0ae42fd 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -641,7 +641,31 @@ RESULT eServiceMP3::setTrickmode(int trick) RESULT eServiceMP3::isCurrentlySeekable() { - return 1; + int ret = 3; // seeking and fast/slow winding possible + GstElement *sink; + + if (!m_gst_playbin) + return 0; + if (m_state != stRunning) + return 0; + + g_object_get (G_OBJECT (m_gst_playbin), "video-sink", &sink, NULL); + + // disable fast winding yet when a dvbvideosink or dvbaudiosink is used + // for this we must do some changes on different places.. (gstreamer.. our sinks.. enigma2) + if (sink) { + ret &= ~2; // only seeking possible + gst_object_unref(sink); + } + else { + g_object_get (G_OBJECT (m_gst_playbin), "audio-sink", &sink, NULL); + if (sink) { + ret &= ~2; // only seeking possible + gst_object_unref(sink); + } + } + + return ret; } RESULT eServiceMP3::info(ePtr<iServiceInformation>&i) |
