ADC Home > Reference Library > Technical Q&As > QuickTime > Movie Creation >

SGSetSettings unexpected results


Q: I'm calling the QuickTime SGSetSettings function to configure the sequence grabber and its channels. The problem is, after I call this function once, subsequent calls to the function always return an error code, and the settings dialog box no longer appears. What's going on?

A: When you call the SGSetSettings function (described in Inside Macintosh: QuickTime Components, page 5-50) the sequence grabber will dispose of any of its current channels before applying this configuration information. It then opens connections to new channels as appropriate.

What this means is if you've created sequence grabber channels yourself (for example, with the SGNewChannel function) prior to calling SGSetSettings, the old references to these channels are no longer valid, and you must query the sequence grabber using the SGGetIndChannel function (described in Inside Macintosh: QuickTime Components, page 5-33) to re-acquire the channel references.

[Oct 11 1999]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.