Ticket #10501: mythtv-0.25-v4l2_EINVAL_ENOTTY.patch

File mythtv-0.25-v4l2_EINVAL_ENOTTY.patch, 1.0 KB (added by Anthony Messina <amessina@…>, 8 years ago)

Small patch to check for ENOTTY in mpegrecorder.cpp

  • mythtv/libs/libmythtv/mpegrecorder.cpp

    diff -Nuar MythTV-mythtv-41fe41b-patch/mythtv/libs/libmythtv/mpegrecorder.cpp MythTV-mythtv-41fe41b-patch2/mythtv/libs/libmythtv/mpegrecorder.cpp
    old new  
    13521352    // put a warning in the logs.  This should keep any driver without this
    13531353    // support (such as saa7164) recording without affecting those that do
    13541354    // use it.
    1355     if (errno == EINVAL)
     1355    if (errno == EINVAL || errno == ENOTTY)
    13561356        return true;
    13571357
    13581358    LOG(VB_GENERAL, LOG_WARNING, LOC + "StartEncoding failed" + ENO);
     
    13821382    // put a warning in the logs.  This should keep any driver without this
    13831383    // support (such as saa7164) recording without affecting those that do
    13841384    // use it.
    1385     if (errno == EINVAL)
     1385    if (errno == EINVAL || errno == ENOTTY)
    13861386        return true;
    13871387
    13881388    LOG(VB_GENERAL, LOG_WARNING, LOC + "StopEncoding failed" + ENO);