bool BDRingBuffer::SwitchTitle(uint32_t index) { if (!bdnav) return false; m_infoLock.lock(); m_currentTitleInfo = GetTitleInfo(index); m_infoLock.unlock(); bd_select_title(bdnav, index); return UpdateTitleInfo(); }
bool BDRingBuffer::SwitchPlaylist(uint32_t index) { if (!bdnav) return false; VERBOSE(VB_PLAYBACK, LOC + "SwitchPlaylist - start"); m_infoLock.lock(); m_currentTitleInfo = GetPlaylistInfo(index); m_infoLock.unlock(); bool result = UpdateTitleInfo(); VERBOSE(VB_PLAYBACK, LOC + "SwitchPlaylist - end"); return result; }
bool BDRingBuffer::SwitchPlaylist(uint32_t index) { if (!bdnav) return false; if (m_currentTitleInfo) bd_free_title_info(m_currentTitleInfo); m_currentTitleInfo = bd_get_playlist_info(bdnav, index); if (!m_currentTitleInfo) return false; return UpdateTitleInfo(index); }
bool BDRingBuffer::SwitchTitle(uint32_t index) { if (!bdnav) return false; if (m_currentTitleInfo) bd_free_title_info(m_currentTitleInfo); m_currentTitleInfo = bd_get_title_info(bdnav, index); if (!m_currentTitleInfo) return false; bd_select_title(bdnav, index); return UpdateTitleInfo(index); }