Ticket #6162: mythtv.diff

File mythtv.diff, 6.0 KB (added by Roo, 15 years ago)

Debugging patch for attached frontend log

  • tv_play.cpp

     
    6161#endif
    6262
    6363#define DEBUG_CHANNEL_PREFIX 0 /**< set to 1 to debug channel prefixing */
    64 #define DEBUG_ACTIONS        0 /**< set to 1 to debug actions           */
     64#define DEBUG_ACTIONS        1 /**< set to 1 to debug actions           */
    6565
    6666#define LOC      QString("TV: ")
    6767#define LOC_WARN QString("TV Warning: ")
     
    21162116void TV::timerEvent(QTimerEvent *te)
    21172117{
    21182118    const int timer_id = te->timerId();
     2119   
     2120    VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(timerId=%1)").arg(timer_id));
    21192121
    21202122    PlayerContext *mctx = GetPlayerReadLock(0, __FILE__, __LINE__);
    21212123    if (mctx->IsErrored())
    21222124    {
    21232125        ReturnPlayerLock(mctx);
    21242126        QThread::exit(1);
     2127        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(1)"));
    21252128        return;
    21262129    }
    21272130    ReturnPlayerLock(mctx);
     
    21342137             stateChangeTimerId.find(timer_id) == stateChangeTimerId.end());
    21352138    }
    21362139    if (ignore)
     2140    {
     2141        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(2)"));
    21372142        return; // Always handle state changes first...
     2143    }
    21382144
    21392145    bool handled = true;
    21402146    if (timer_id == lcdTimerId)
     
    21652171        handled = false;
    21662172
    21672173    if (handled)
     2174    {
     2175        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(3)"));
    21682176        return;
     2177    }
    21692178
    21702179    // Check if it matches a stateChangeTimerId
    21712180    PlayerContext *ctx = NULL;
     
    22032212    }
    22042213
    22052214    if (handled)
     2215    {
     2216        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(4)"));
    22062217        return;
     2218    }
    22072219
    22082220    // Check if it matches a recorderPlaybackInfoTimerId
    22092221    bool do_pbinfo_fetch = false;
     
    22522264    }
    22532265
    22542266    if (handled)
     2267    {
     2268        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(5)"));
    22552269        return;
     2270    }
    22562271
    22572272    // Check if it matches a signalMonitorTimerId
    22582273    ctx = NULL;
     
    22842299    }
    22852300
    22862301    if (handled)
     2302    {
     2303        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(6)"));
    22872304        return;
     2305    }
    22882306
    22892307    // Check if it matches a tvchainUpdateTimerId
    22902308    ctx = NULL;
     
    23122330    }
    23132331
    23142332    if (handled)
     2333    {
     2334        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(7)"));
    23152335        return;
     2336    }
    23162337
    23172338    // Check if it matches keyListTimerId
    23182339    QKeyEvent *keyEvent = NULL;
     
    23532374    }
    23542375
    23552376    if (handled)
     2377    {
     2378        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(8)"));
    23562379        return;
     2380    }
    23572381
    23582382    // Check if it matches networkControlTimerId
    23592383    QString netCmd = QString::null;
     
    23802404    }
    23812405
    23822406    if (handled)
     2407    {
     2408        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(9)"));
    23832409        return;
     2410    }
    23842411
    23852412    // Check if it matches exitPlayerTimerId
    23862413    if (timer_id == exitPlayerTimerId)
     
    24262453    }
    24272454
    24282455    if (handled)
     2456    {
     2457        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(10)"));
    24292458        return;
     2459    }
    24302460
    24312461    if (timer_id == jumpMenuTimerId)
    24322462    {
     
    24392469    }
    24402470
    24412471    if (handled)
     2472    {
     2473        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(11)"));
    24422474        return;
     2475    }
    24432476
    24442477    if (timer_id == udpNotifyTimerId)
    24452478    {
     
    24532486    }
    24542487
    24552488    if (handled)
     2489    {
     2490        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(12)"));
    24562491        return;
     2492    }
    24572493
    24582494    if (timer_id == switchToInputTimerId)
    24592495    {
     
    24732509    }
    24742510
    24752511    if (handled)
     2512    {
     2513        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(13)"));
    24762514        return;
     2515    }
    24772516
    24782517    if (timer_id == ccInputTimerId)
    24792518    {
     
    24932532    }
    24942533
    24952534    if (handled)
     2535    {
     2536        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(14)"));
    24962537        return;
     2538    }
    24972539
    24982540    if (timer_id == asInputTimerId)
    24992541    {
     
    25132555    }
    25142556
    25152557    if (handled)
     2558    {
     2559        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(15)"));
    25162560        return;
     2561    }
    25172562
    25182563    if (timer_id == queueInputTimerId)
    25192564    {
     
    25422587    }
    25432588
    25442589    if (handled)
     2590    {
     2591        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(16)"));
    25452592        return;
     2593    }
    25462594
    25472595    if (timer_id == browseTimerId)
    25482596    {
     
    25532601    }
    25542602
    25552603    if (handled)
     2604    {
     2605        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(17)"));
    25562606        return;
     2607    }
    25572608
    25582609    // Check unmute..
    25592610    ctx = NULL;
     
    25842635    }
    25852636
    25862637    if (handled)
     2638    {
     2639        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(18)"));
    25872640        return;
     2641    }
    25882642
    25892643    if (timer_id == updateOSDPosTimerId)
    25902644    {
     
    26142668    }
    26152669
    26162670    if (handled)
     2671    {
     2672        VERBOSE(VB_IMPORTANT, LOC + QString("timerEvent(19)"));
    26172673        return;
     2674    }
    26182675
    26192676    if (timer_id == errorRecoveryTimerId)
    26202677    {
     
    30193076
    30203077bool TV::eventFilter(QObject *o, QEvent *e)
    30213078{
     3079    VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 0 )"));
     3080   
    30223081    const MythMainWindow *mainWindow = gContext->GetMainWindow();
    30233082    if (mainWindow == o)
    30243083    {
     
    30313090            mctx->UnlockDeleteNVP(__FILE__, __LINE__);
    30323091            ReturnPlayerLock(mctx);
    30333092        }
     3093        VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 1 )"));
    30343094        return false;
    30353095    }
    30363096
     
    30453105            if (!keyListTimerId)
    30463106                keyListTimerId = StartTimer(1, __LINE__);
    30473107
     3108            VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 2 )"));
    30483109            return true;
    30493110        }
    30503111        case QEvent::Paint:
     
    30593120                ctx->UnlockDeleteNVP(__FILE__, __LINE__);
    30603121            }
    30613122            ReturnPlayerLock(mctx);
     3123            VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 3 )"));
    30623124            return true;
    30633125        }
    30643126        case MythEvent::MythEventMessage:
    30653127        {
    30663128            customEvent((QEvent *)e);
     3129            VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 4 )"));
    30673130            return true;
    30683131        }
    30693132        default:
     3133        {
     3134            VERBOSE(VB_IMPORTANT, LOC + QString("eventFilter( 5 )"));
    30703135            return false;
     3136        }
    30713137    }
    30723138}
    30733139