[mythtv-commits] Ticket #9625: Exiting near end of still-recording program results in no bookmark set
MythTV
noreply at mythtv.org
Wed Mar 2 11:59:10 UTC 2011
#9625: Exiting near end of still-recording program results in no bookmark set
-------------------------------------+-------------------------------------
Reporter: John Veness | Type: Bug Report -
<John.Veness.mythtv@…> | General
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: 0.24-fixes | Severity: medium
Keywords: | Ticket locked: 0
-------------------------------------+-------------------------------------
From http://www.gossamer-threads.com/lists/mythtv/users/473755 :
I have the setting "Action on playback exit: Save position and exit". This
saves a bookmark when I press Esc while playing a recording, allowing me
to resume from where I left off.
However, if I start playing a program while it is still being recorded,
and skip right up to the end (or as close to the end as I can get, which
is a few seconds before the end), then press Esc, a bookmark is *not* set.
This means that when I play the recording again, it starts from the
beginning rather than when I got up to.
I often "chase play" recordings like this, like sporting events, where I
start playing the program late and skip through the adverts, and catch up
to the live broadcast. It's OK if I continue playing, but if I stop, no
bookmark is set and it's annoying when it happens. The workaround is to
pause or skip back a few seconds before stopping, but I keep forgetting to
do so.
I think this problem is new in 0.23 or 0.24. It certainly happens now
with up-to-date 0.24-fixes, and I certainly don't recall it happening in
0.22 and earlier (I only used 0.23 for a day or two).
Jim Stichnoth says:
> TV::PrepareToExitPlayer() won't set a bookmark if IsNearEnd() is true,
> which must be what's happening here. Probably an additional test on
> the recording state should be added, like:
>
> if (bookmark_it&& (!ctx->player->IsNearEnd() ||
> StateIsRecording(GetState(ctx))))
> ctx->player->SetBookmark();
>
> The following test on db_auto_set_watched probably needs similar
treatment.
That sounds sensible. Alternatively, maybe the check for an in-progress
recording could be moved to IsNearEnd(), so that function would return
false if a recording is in progress, no matter where the current position
is? It seems logical to me that, even if you are almost at the "as live"
position, you're still not near the *end* of the recording, as the
recording has potentially hours to do. Of course, someone would need to
check that this doesn't break other uses of IsNearEnd().
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9625>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list