Ignore:
Timestamp:
02/05/08 11:41:55 (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/Camera.cc

    r8843 r8856  
    102102    if (!fVideo->IsOpen())
    103103    {
    104         gLog << "ERROR - Process: Device not open." << endl;
     104        gLog << err << "Camera::Thread: ERROR - Device not open." << endl;
    105105        return kFALSE;
    106106    }
  • trunk/MagicSoft/Cosy/videodev/MVideo.cc

    r8849 r8856  
    104104                return -4;
    105105
    106             gLog << err << "ERROR - MVideo::Ioctl -ioctl returned rc=" << rc << " '";
    107             gLog << strerror(errno) << "' (errno = " << errno << ")" << endl;
     106            gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - ";
     107            gLog << strerror(errno) << " (rc=" << rc << ")" << endl;
    108108            usleep(10);
    109109            continue;
    110110        }
    111111
    112         gLog << err << "ERROR - MVideo::Ioctl " << hex << req << ": errno=" << dec << errno << " - ";
     112        gLog << err << "ERROR - MVideo::Ioctl 0x" << hex << req << ": errno=" << dec << errno << " - ";
    113113        gLog << strerror(errno) << " (rc=" << rc << ")" << endl;
    114114        return rc;
     
    161161    }
    162162
    163     gLog << all << "Opening " << fPath << "..." << flush;
     163    gLog << all << "Opening " << fPath << "... " << flush;
    164164    do
    165165    {
     
    171171    if (fFileDesc == -1)
    172172    {
    173         gLog << err << "ERROR!" << endl;
     173        gLog << err << "ERROR: " << strerror(errno) << endl;
    174174        return kFALSE;
    175175    }
     
    263263        fCaps.maxheight, fCaps.maxwidth, // height, width
    264264        VIDEO_PALETTE_RGB24              // palette
     265        //768, 576,
     266        //VIDEO_PALETTE_RGB555             // palette
    265267    };
    266268
     
    271273        return kTRUE;
    272274
    273     if (errno == EAGAIN)
     275//    if (errno == EAGAIN)
    274276        gLog << err << "ERROR - Couldn't start capturing frame " << frame << " - unable to sync." << endl;
    275277
     
    341343
    342344    memcpy(&fChannel, &ch, sizeof(fChannel));
     345
     346    gLog << all << "Switched to channel " << chan << endl;
    343347
    344348    return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.