Ticket #5578: libmythtv_transcodepatch.diff

File libmythtv_transcodepatch.diff, 1.0 KB (added by simonwalls@…, 12 years ago)

Patch for libmythtv (0.21-fixes SVN 17451) to read the transcoded program flag out of the database

  • mythtv/libs/libmythtv/programinfo.cpp

     
    39723972    MSqlQuery query(MSqlQuery::InitCon());
    39733973
    39743974    query.prepare("SELECT commflagged, cutlist, autoexpire, "
    3975                   "editing, bookmark, watched, preserve "
     3975                  "editing, bookmark, watched, preserve, transcoded "
    39763976                  "FROM recorded LEFT JOIN recordedprogram ON "
    39773977                  "(recorded.chanid = recordedprogram.chanid AND "
    39783978                  "recorded.progstart = recordedprogram.starttime) "
     
    39933993        flags |= (query.value(4).toInt() == 1) ? FL_BOOKMARK : 0;
    39943994        flags |= (query.value(5).toInt() == 1) ? FL_WATCHED : 0;
    39953995        flags |= (query.value(6).toInt() == 1) ? FL_PRESERVED : 0;
     3996        flags |= (query.value(7).toInt() == 1) ? FL_TRANSCODED : 0;
    39963997    }
    39973998
    39983999    return flags;