/*
* Copyright (C) 2005-2013 Team XBMC
- * http://www.xbmc.org
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
bool CDVDInputStreamNavigator::SeekTime(int iTimeInMsec)
{
- if( m_dll.dvdnav_time_search(m_dvdnav, iTimeInMsec * 90) == DVDNAV_STATUS_ERR )
+ if( m_dll.dvdnav_jump_to_sector_by_time(m_dvdnav, iTimeInMsec * 90, 0) == DVDNAV_STATUS_ERR )
{
CLog::Log(LOGDEBUG, "dvdnav: dvdnav_time_search failed( %s )", m_dll.dvdnav_err_to_string(m_dvdnav));
return false;
return 0;
}
}
+
+bool CDVDInputStreamNavigator::GetDVDTitleString(std::string& titleStr)
+{
+ if (!m_dvdnav) return false;
+ const char* str = NULL;
+ m_dll.dvdnav_get_title_string(m_dvdnav, &str);
+ titleStr.assign(str);
+ return true;
+}
+
+bool CDVDInputStreamNavigator::GetDVDSerialString(std::string& serialStr)
+{
+ if (!m_dvdnav) return false;
+ const char* str = NULL;
+ m_dll.dvdnav_get_serial_string(m_dvdnav, &str);
+ serialStr.assign(str);
+ return true;
+}