display info now correct when files are skipped
This commit is contained in:
parent
9cc4389052
commit
fd88d5f5e9
|
@ -303,7 +303,7 @@ GstreamerPlayer :: playNextSmil(void) throw (
|
|||
{
|
||||
return false;
|
||||
}
|
||||
m_currentPlayLength = m_playContext->getPosition();//this gets the length of the stream that just completed
|
||||
// m_currentPlayLength = m_playContext->getPosition();//this gets the length of the stream that just completed
|
||||
m_playContext->closeContext();
|
||||
if(m_smilHandler == NULL){
|
||||
return false;
|
||||
|
@ -326,7 +326,8 @@ GstreamerPlayer :: playNextSmil(void) throw (
|
|||
m_Id = audioDescription->m_Id;
|
||||
m_url = (const char*) audioDescription->m_src;
|
||||
g_idle_add(GstreamerPlayer::fireOnStartEvent, this);
|
||||
m_smilOffset += m_currentPlayLength;
|
||||
m_smilOffset = audioDescription->m_begin;
|
||||
// m_smilOffset += m_currentPlayLength;
|
||||
m_playContext->playContext();
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -145,13 +145,14 @@ void
|
|||
NowPlaying :: setCurrentInnerPlayable (gint64 id) throw ()
|
||||
{
|
||||
playableMutex.lock();
|
||||
//keep this for future use
|
||||
if((gint64)currentInnerPlayable->getId()->getId() != id)
|
||||
{
|
||||
//we are not playing a correct file, must have had an error - adjust the playlist
|
||||
std::cout << "NowPlaying :: setCurrentInnerPlayable ERROR DETECTED! called = " << id << ", current = " << (gint64)currentInnerPlayable->getId()->getId() << std::endl;
|
||||
//std::cout << "NowPlaying :: setCurrentInnerPlayable ERROR DETECTED! called = " << id << ", current = " << (gint64)currentInnerPlayable->getId()->getId() << std::endl;
|
||||
}
|
||||
else{
|
||||
std::cout << "NowPlaying :: setCurrentInnerPlayable CORRECT!" << std::endl;
|
||||
//std::cout << "NowPlaying :: setCurrentInnerPlayable CORRECT!" << std::endl;
|
||||
}
|
||||
playableMutex.unlock();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue