Hypothetically, it shouldn't be necessary to disable the audio
connection when there are no capture outputs expecting audio, The
capture session should know to just ignore the extra stream in that
case.
hmm... I guess that won't do much then :)
In the mean time, feel free to file a bug on this issue. Details on
the specific device being used (if you can get them), your
configuration of the capture session, and your configuration of the
decompressed video output, including any pixel buffer attributes
that you might be setting, would be especially helpful.
I don't think it's a bug, as much as it is my incompetence with QT.
The camera works fine with existing software, so it must be doing
something that I'm not.
I'm not configuring the decompressed video, nor am I setting any
pixelbuffer attributes -- I just need the CVImageBufferRef to pass
along to some other image processing stuff.
My code looks something like this (error handling removed for brevity:
// get the list of owned connections
NSArray *ownedConnections = [deviceInput connections];
// disable all the audio connections
for (QTCaptureConnection *connection in ownedConnections) {
if ( [[connection mediaType] isEqualToString:
QTMediaTypeSound] ) {
[connection setEnabled:NO];
}
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden
This email sent to email@hidden