Ticket #4417: 086-bookmark.livetv.patch

File 086-bookmark.livetv.patch, 913 bytes (added by Bill <cizek@…>, 12 years ago)
  • mythtv/libs/libmythtv/tv_play.cpp

    diff -r -u -X diff.exclude myth.15279.0101a/mythtv/libs/libmythtv/tv_play.cpp myth.15279.0101b/mythtv/libs/libmythtv/tv_play.cpp
     
    76467646 */
    76477647bool TV::BookmarkAllowed(void)
    76487648{
     7649    // Allow bookmark of "Record current LiveTV program"
     7650    if (StateIsLiveTV(GetState()) && playbackinfo &&
     7651        (playbackinfo->GetAutoExpireFromRecorded() == kLiveTVAutoExpire))
     7652        return false;
     7653
     7654    if (StateIsLiveTV(GetState()) && ! playbackinfo)
     7655        return false;
     7656
    76497657    if ((prbuffer->isDVD() && (!gContext->GetNumSetting("EnableDVDBookmark", 0)
    7650         || prbuffer->DVD()->GetTotalTimeOfTitle() < 120)) ||
    7651         StateIsLiveTV(GetState()))
     7658        || prbuffer->DVD()->GetTotalTimeOfTitle() < 120)))
    76527659        return false;
    76537660
    76547661    return true;