Exemplo n.º 1
0
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();
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
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);
}