Ignore:
Timestamp:
02/13/08 19:44:39 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/videodev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/videodev/MVideo.cc

    r8861 r8862  
    101101// Mapper around ioctl for easier access to the device
    102102//
    103 int MVideo::Ioctl(int req, void *opt, bool allowirq) const
     103int MVideo::Ioctl(int req, void *opt, bool allowirq, bool force) const
    104104{
    105105    if (fFileDesc<0)
     
    129129        }
    130130
    131         gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - ";
    132         gLog << strerror(errno) << " (rc=" << rc << ")" << endl;
     131        if (!force)
     132        {
     133            gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - ";
     134            gLog << strerror(errno) << " (rc=" << rc << ")" << endl;
     135        }
    133136        return rc;
    134137    }
     
    186189    while (1)
    187190    {
    188         if (Ioctl (VIDIOC_QUERYCTRL, &qctrl)==-1)
     191        if (Ioctl(VIDIOC_QUERYCTRL, &qctrl, true, true)==-1)
    189192            break;
    190193
     
    769772void MVideo::Print() const
    770773{
    771     gLog << all;
     774    gLog << all << dec;
    772775
    773776    gLog << "Device " << fPath << " " << (IsOpen()?"open":"closed") << "." << endl;
     
    818821    gLog  << dec << endl;
    819822
    820     gLog << "Controls:" << endl;
     823    gLog << inf2 << "Controls:" << endl;
    821824    fControls.Print();
    822825}
  • trunk/MagicSoft/Cosy/videodev/MVideo.h

    r8861 r8862  
    6262
    6363private:
    64     int Ioctl(int req, void *opt, bool allowirq=true) const;
     64    int Ioctl(int req, void *opt, bool allowirq=true, bool force=false) const;
    6565
    6666    void Reset();
Note: See TracChangeset for help on using the changeset viewer.