Ticket #6715: mythtv_assert_fix.patch

File mythtv_assert_fix.patch, 913 bytes (added by mythtv@…, 15 years ago)

possible fix

  • mythtv/libs/libmythtv/remoteencoder.cpp

    diff -uNr a/mythtv/libs/libmythtv/remoteencoder.cpp b/mythtv/libs/libmythtv/remoteencoder.cpp
    a b  
    160160    float retval = 30.0f;
    161161
    162162    if (SendReceiveStringList(strlist, 1))
     163    {
    163164        retval = strlist[0].toFloat(&ok);
    164165
    165     if (!ok)
    166     {
     166        if (!ok)
     167        {
     168            VERBOSE(VB_IMPORTANT, LOC_ERR +
     169                    QString("GetFrameRate() failed to parse response '%1'")
     170                    .arg(strlist[0]));
     171        }
     172    } else {
    167173        VERBOSE(VB_IMPORTANT, LOC_ERR +
    168                 QString("GetFrameRate() failed to parse response '%1'")
    169                 .arg(strlist[0]));
     174                QString("GetFrameRate(): SendReceiveStringList() failed"));
    170175    }
    171176
    172177    return (ok) ? retval : 30.0f;