[mythtv-commits] Ticket #36: mythvideo gallery filebrowsemode fix
MythTV
mythtv at cvs.mythtv.org
Sat Jul 2 04:03:53 UTC 2005
#36: mythvideo gallery filebrowsemode fix
-----------------------+----------------------------------------------------
Id: 36 | Status: new
Component: mythvideo | Modified: Sat Jul 2 04:03:53 2005
Severity: medium | Milestone: 0.19
Priority: minor | Version: head
Owner: ijr | Reporter: Robert Tsai <rtsai1111>
-----------------------+----------------------------------------------------
When MythVideo gallery is configured for "filebrowser" mode, the zero-
based array index of the file does not correspond to the 1-based (possibly
sparsely-populated) "intid" values of the videos in the database.
However, in VideoSelected, the "curitem", rather than being populated with
the correct database data corresponding to the selected file, is instead
populated with the database data whose "intid" value is equal to the array
index.
This patch fixes that problem. When configured for "filebrowse" mode, this
bug will probably manifest itself as an "off-by-one" bug (e.g., if you
select some video from the video gallery, the next detail screen will
present information for the immediately-preceding video).
It also looks like this VideoSelected constructor will fail if a browsed
file is not in the database. But I don't address that here.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/36>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list