Changeset 8862 for trunk/MagicSoft/Cosy/videodev
- Timestamp:
- 02/13/08 19:44:39 (17 years ago)
- Location:
- trunk/MagicSoft/Cosy/videodev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/videodev/MVideo.cc
r8861 r8862 101 101 // Mapper around ioctl for easier access to the device 102 102 // 103 int MVideo::Ioctl(int req, void *opt, bool allowirq ) const103 int MVideo::Ioctl(int req, void *opt, bool allowirq, bool force) const 104 104 { 105 105 if (fFileDesc<0) … … 129 129 } 130 130 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 } 133 136 return rc; 134 137 } … … 186 189 while (1) 187 190 { 188 if (Ioctl (VIDIOC_QUERYCTRL, &qctrl)==-1)191 if (Ioctl(VIDIOC_QUERYCTRL, &qctrl, true, true)==-1) 189 192 break; 190 193 … … 769 772 void MVideo::Print() const 770 773 { 771 gLog << all ;774 gLog << all << dec; 772 775 773 776 gLog << "Device " << fPath << " " << (IsOpen()?"open":"closed") << "." << endl; … … 818 821 gLog << dec << endl; 819 822 820 gLog << "Controls:" << endl;823 gLog << inf2 << "Controls:" << endl; 821 824 fControls.Print(); 822 825 } -
trunk/MagicSoft/Cosy/videodev/MVideo.h
r8861 r8862 62 62 63 63 private: 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; 65 65 66 66 void Reset();
Note:
See TracChangeset
for help on using the changeset viewer.