git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd6065d
)
fix wrong selected audio track when playing back files via gstreamer
author
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 27 Oct 2009 17:10:53 +0000
(18:10 +0100)
committer
ghost
<andreas.monzner@multimedia-labs.de>
Tue, 27 Oct 2009 23:38:17 +0000
(
00:38
+0100)
lib/service/servicemp3.cpp
patch
|
blob
|
history
diff --git
a/lib/service/servicemp3.cpp
b/lib/service/servicemp3.cpp
index 16ca8287877e93950509ee554bca9aad2b5169aa..12959a0ee85e529baa032f2d14396785c48d9fe7 100644
(file)
--- a/
lib/service/servicemp3.cpp
+++ b/
lib/service/servicemp3.cpp
@@
-194,7
+194,7
@@
eServiceMP3::eServiceMP3(eServiceReference ref)
m_seekTimeout = eTimer::create(eApp);
m_subtitle_sync_timer = eTimer::create(eApp);
m_stream_tags = 0;
- m_currentAudioStream =
0
;
+ m_currentAudioStream =
-1
;
m_currentSubtitleStream = 0;
m_subtitle_widget = 0;
m_currentTrickRatio = 0;
@@
-945,6
+945,8
@@
int eServiceMP3::getNumberOfTracks()
int eServiceMP3::getCurrentTrack()
{
+ if (m_currentAudioStream == -1)
+ g_object_get (G_OBJECT (m_gst_playbin), "current-audio", &m_currentAudioStream, NULL);
return m_currentAudioStream;
}