~ubuntu-branches/ubuntu/maverick/mythtv/maverick

« back to all changes in this revision

Viewing changes to programs/mythfrontend/playbackbox.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Dave Walker, Mario Limonciello
  • Date: 2010-02-27 14:33:45 UTC
  • mfrom: (1.1.48 upstream)
  • Revision ID: james.westby@ubuntu.com-20100227143345-qye52374g4b4caf9
Tags: 0.23.0~trunk23623-0ubuntu1
[ Dave Walker ]
* debian/control:  Added quilt as a build-depends, primarily
  for karmic builds.

[ Mario Limonciello ]
* New checkout (r23623).
  - Fixes audio issues w/ ac3 audio.
* debian/patches/36_setgroups_too:
  - Set the right args for setgroups. (LP: #524822)
* debian/rules:
  - Explicitly set all shell scripts executable.  Fixes problems on < lucid
    builds.
* debian/control:
  - Correct the replaces statements. (LP: #527288)

Show diffs side-by-side

added added

removed removed

Lines of Context:
847
847
    }
848
848
}
849
849
 
 
850
/** \brief Updates the UI properties for a new preview file.
 
851
 *  This first update the image property of the MythUIButtonListItem
 
852
 *  with the new preview file, then if it is selected and there is
 
853
 *  a preview image UI item in the theme that it's filename property
 
854
 *  gets updated as well.
 
855
 */
850
856
void PlaybackBox::HandlePreviewEvent(
851
857
    const QString &piKey, const QString &previewFile)
852
858
{
853
859
    if (previewFile.isEmpty())
854
860
        return;
855
861
 
856
 
    ProgramInfo          *info = FindProgramInUILists(piKey);
 
862
    ProgramInfo *info = m_programInfoCache.GetProgramInfo(piKey);
857
863
    MythUIButtonListItem *item = NULL;
858
864
 
859
865
    if (info)
3288
3294
/// from the UI program info lists.
3289
3295
ProgramInfo *PlaybackBox::FindProgramInUILists(const QString &key)
3290
3296
{
3291
 
    QStringList keyParts = key.split('_');
3292
 
    if (keyParts.size() == 2)
3293
 
    {
3294
 
        uint      chanid     = keyParts[0].toUInt();
3295
 
        QDateTime recstartts = QDateTime::fromString(keyParts[1], Qt::ISODate);
3296
 
        if (chanid && recstartts.isValid())
3297
 
            return FindProgramInUILists(chanid, recstartts);
3298
 
    }
 
3297
    uint chanid;
 
3298
    QDateTime recstartts;
 
3299
    if (ProgramInfo::ExtractKey(key, chanid, recstartts))
 
3300
        return FindProgramInUILists(chanid, recstartts);
3299
3301
 
3300
3302
    VERBOSE(VB_IMPORTANT, LOC_ERR +
3301
3303
            QString("FindProgramInUILists(%1) "
3999
4001
            if (pginfo)
4000
4002
                Play(*pginfo, true);
4001
4003
        }
 
4004
        else if ((message == "SET_PLAYBACK_URL") && (me->ExtraDataCount() == 2))
 
4005
        {
 
4006
            QString piKey = me->ExtraData(0);
 
4007
            ProgramInfo *info = m_programInfoCache.GetProgramInfo(piKey);
 
4008
            if (info)
 
4009
                info->pathname = me->ExtraData(1);
 
4010
        }
4002
4011
    }
4003
4012
    else
4004
4013
        ScheduleCommon::customEvent(event);