Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QCVideoInput: Sequence grabber initialization failed



You could publish a port with this information.

Your best bet would be to connect the output of the Video Input patch to an Input Splitter whose type is boolean. If the sequence grabber initialization fails, it will output nil images which are typecast to false over the Input Splitter. Publish the output of the splitter and use -valueForOutputKey in your code.

Thanks for the very clever suggestion! It works fine in QC, but from my app -valueForOutputKey: seems to return before the video is quite established, giving a false negative. Not sure how I would go about stalling or delaying the output of a published port... Or is there another QC way? Right now, in my app, I have to detach a thread, sleep, and then do -valueForOutputKey: from the thread, which is ugly, to say the least.

That is not accessing QC in a thread-safe manner which is a potential crasher. Just do [self performSelector:afterDelay:] on your app controller object.



________________________________________________________ Pierre-Olivier Latour email@hidden Quartz Composer Team Apple Computer, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >QCVideoInput: Sequence grabber initialization failed (From: Roland Torres <email@hidden>)
 >Re: QCVideoInput: Sequence grabber initialization failed (From: Roland Torres <email@hidden>)
 >Re: QCVideoInput: Sequence grabber initialization failed (From: Troy Koelling <email@hidden>)
 >Re: QCVideoInput: Sequence grabber initialization failed (From: Roland Torres <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.