Ticket #4452: mythvideo_warning.diff

File mythvideo_warning.diff, 745 bytes (added by Roo <roo.watt@…>, 12 years ago)
  • mythplugins/mythvideo/mythvideo/videolist.cpp

     
    741741    if ((unsigned int)index < m_metadata_view_flat.size())
    742742        return m_metadata_view_flat[index];
    743743
    744     VERBOSE(VB_IMPORTANT,
    745             QString("%1: getVideoListMetadata: index out of bounds: %2")
    746             .arg(__FILE__).arg(index));
     744    if (m_metadata_view_flat.size() != 0)
     745        VERBOSE(VB_IMPORTANT,
     746                QString("%1: getVideoListMetadata: index out of bounds: %2")
     747                .arg(__FILE__).arg(index));
     748
    747749    return NULL;
    748750}
    749751