rshendershot / MythRokuPlayer

mythtv front end for Roku player
tbd
8 stars 2 forks source link

MythRokuPlayer dies when there are no recordings or videos #26

Open rshendershot opened 11 years ago

rshendershot commented 11 years ago

Selecting Date, Group or Genre causes the player to die immediately

rshendershot commented 11 years ago

this is a player UI problem in AppHomeScreen where an assumption is made that there is at least one item in the category. (currently see lines 102: screen.SetContentList(m.Categories.Kids) and 114: kid = m.Categories.Kids[msg.GetIndex()]

so the use of displayCategoryPosterScreen(kid) at line 149 the 'kid' variable is uninitialized.

    Backtrace:
    Function getshowsforcategoryitem(category As <uninitialized>, item As Integer) As <uninitialized>
       file/line: /tmp/plugin/MDAAAAX8VWKB...g:/source/appPosterScreen.brs(123)
    Function showposterscreen(screen As <uninitialized>, category As <uninitialized>) As Integer
       file/line: /tmp/plugin/MDAAAAX8VWKB...g:/source/appPosterScreen.brs(43)
    Function displaycategoryposterscreen(category As <uninitialized>) As 
       file/line: /tmp/plugin/MDAAAAX8VWKB/pkg:/source/appHomeScreen.brs(171)
    Function showhomescreen(screen As ) As Integer
       file/line: /tmp/plugin/MDAAAAX8VWKB/pkg:/source/appHomeScreen.brs(149)
    Function main() As 
       file/line: /tmp/plugin/MDAAAAX8VWKB/pkg:/source/appMain.brs(20)
rshendershot commented 11 years ago

Having no resources to watch is a unique edge case. The core issue won't be solved by patching the backend so making this a ToDo If/Wjhen do any work in the UI.