Professional Web Applications Themes

macam driver under panther - Mac Programming

I was checking out the open source macam driver, however apparently it doesn't run under panther. From what I can tell: Application starts -> Application calls EnterMovies -> System loads in components, including the sequence grabber control panel that the macam driver component provides -> Sequence Grabber panel, upon registering, scans the usb bus for available cameras and registers the actual video digitalizer components, one for each attached camera, using RegisterComponent Now, if there are no attached cameras, everything works fine. If there is an attached camera, the video digitalizer component for the camera is sucessfully registered (RegisterComponent returns non-null) ...

  1. #1

    Default macam driver under panther

    I was checking out the open source macam driver, however apparently it doesn't
    run under panther. From what I can tell:

    Application starts
    -> Application calls EnterMovies
    -> System loads in components, including the sequence grabber control panel
    that the macam driver component provides
    -> Sequence Grabber panel, upon registering, scans the usb bus for available
    cameras and registers the actual video digitalizer components, one for each
    attached camera, using RegisterComponent

    Now, if there are no attached cameras, everything works fine. If there is an
    attached camera, the video digitalizer component for the camera is sucessfully
    registered (RegisterComponent returns non-null) but the system opens,
    registers, and closes the sequence grabber control panel component again, which
    causes the camera to be registered again, which causes the system to open,
    register, and close the sequence grabber control panel, ad infinitum.

    The sequence grabber component's dispatch routine never actually gets called,
    and commenting out the RegisterComponent line fixes the infinite loop, but
    obviously won't load the camera.

    -----<problematic line in QTPanel.m>-----
    comp=RegisterComponent(&cd,&vdigMainEntry,
    registerComponentAfterExisting,name,desc,NULL);
    -----<snip>-----

    Examining what's happening in GDB from a low level perspective, I get the
    following stack trace:

    <snip>
    #5 0x0041ec78 in sgpnRegister ()
    #6 0x902824f0 in CallComponentFunctionCommon ()
    #7 0x0041e864 in sgpnMainEntry ()
    #8 0x90281278 in CallComponent ()
    #9 0x902812a8 in CallComponent ()
    #10 0x902e30ac in CallComponentRegister ()
    #11 0x90325118 in kissComponent(ComponentRecord*) ()
    #12 0x902e4a90 in processSerialKissers ()
    #13 0x902d8f7c in registerSystemComponents ()
    #14 0x9028c79c in FindNextComponentInternal(ComponentRecord*,
    ComponentDescription*) ()
    #15 0x9028fb84 in FindNextComponent ()
    #16 0x91bd733c in EnterMovies_priv ()
    #17 0x91bd7160 in EnterMovies ()
    #18 0x00020990 in main ()
    #19 0x0000946c in _start (argc=2, argv=0xbffffe64, envp=0xbffffe70) at
    /SourceCache/Csu/Csu-47/crt.c:267
    #20 0x8fe1a558 in __dyld__dyld_start ()

    Stack frame #12 (processSerialKissers) is where the infinite loop appears to
    be. It just keeps opening, registering, and closing the sequence grabber
    control panel if there are any attached cameras.

    Does anyone have any clue as to why this is happening? Any possible solutions?

    I did find a patched version of the component that works with panther at
    MP0werd Guest

  2. #2

    Default Re: macam driver under panther

    .... continuation from last post

    I did find a patched version of the component that works with panther at
    http://www.multi-cam.net/drivers/macam_multicam_fix.zip

    however it doesn't provide sources to show how the fix was performed, and I'm
    too curious about it now to be satisfied with a binary.
    MP0werd Guest

  3. #3

    Default Re: macam driver under panther

    In article <aol.com>,
    com (MP0werd) wrote:
     

    The macam driver is broken in more ways than I care to go into here. Get the
    IOXperts driver if you want something that actually works.

    meeroh

    --
    If this message helped you, consider buying an item
    from my wish list: <http://web.meeroh.org/wishlist>

    Miro Guest

  4. #4

    Default Re: macam driver under panther

    Miro Jurisic org wrote:
     

    >
    >The macam driver is broken in more ways than I care to go into here. Get
    >the
    >IOXperts driver if you want something that actually works.[/ref]

    Hmm, I'd consider that a good reason to improve it. In any case, I found the
    fix on CVS:

    <http://cvs.sourceforge.net/viewcvs.py/webcam-osx/macam/component_specific
    /QTPanel.m?r1=1.2&r2=1.3>

    I'm still not sure why MacOS X keeps re-registering the component, but manually
    breaking the loop works I guess.
     
    MP0werd Guest

Similar Threads

  1. Replies: 1
    Last Post: October 21st, 06:44 PM
  2. Replies: 4
    Last Post: July 2nd, 01:11 PM
  3. Dir CDs in Panther
    By Michael Windle in forum Macromedia Director Basics
    Replies: 0
    Last Post: January 12th, 06:00 AM
  4. Replies: 1
    Last Post: December 13th, 02:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139