8 #define LOC QString("DVDPlayer: ")
12 dvd_stillframe_showing(
false),
13 m_initial_title(-1), m_initial_audio_track(-1),
14 m_initial_subtitle_track(-1),
27 int64_t timecode,
bool wrap)
117 LOG(VB_PLAYBACK, LOG_DEBUG,
118 LOC + QString(
"Validframes %1, FreeFrames %2, VideoPaused %3")
129 if (release_all || release_one)
149 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"Clearing MythTV DVD wait state");
164 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
"Clearing DVD wait state");
205 LOG(VB_PLAYBACK, LOG_WARNING,
LOC +
206 "In DVD Menu: No video frames in queue");
353 QStringList dvdbookmark = QStringList();
366 if (!dvdbookmark.empty())
368 QStringList::Iterator it = dvdbookmark.begin();
370 frames = (
long long)((*++it).toLongLong() & 0xffffffffLL);
373 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
374 QString(
"Get Bookmark: title %1 audiotrack %2 subtrack %3 "
482 if (chapter < 0 || chapter > total)
486 chapter = current -1;
487 if (chapter < 0) chapter = 0;
489 else if (chapter > total)
491 chapter = current + 1;
492 if (chapter > total) chapter = total;
517 uint buttonversion = 0;
529 if (!numbuttons || !dvdSubtitle || (buttonversion == 0))
541 m_buttonVersion = buttonversion;
561 LOG(VB_GENERAL, LOG_ERR,
"No DVD Menu available.");
583 uint64_t framenum = frame;
590 int subtitletrack = -1;
593 LOG(VB_GENERAL, LOG_ERR,
LOC +
594 "DVD has no name and serial number. Cannot set bookmark.");
600 GetTotalTimeOfTitle() > 120 && frame > 0)
618 fields += QString(
"%1").arg(title);
619 fields += QString(
"%1").arg(audiotrack);
620 fields += QString(
"%1").arg(subtitletrack);
621 fields += QString(
"%1").arg(framenum);
623 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
624 QString(
"Set Bookmark: title %1 audiotrack %2 subtrack %3 frame %4")
625 .arg(title).arg(audiotrack).arg(subtitletrack).arg(framenum));
648 QString
name = QObject::tr(
"Angle %1").arg(angle);
660 if (angle < 1 || angle > (
int)total)
695 LOG(VB_PLAYBACK, LOG_INFO,
LOC +
696 QString(
"Stillframe timeout after %1 seconds")