-- (void) setVideoContainerTag: (NSNumber *) aValue
-
-{
- if ((nil != aValue || nil != videoContainerTag) && NO == [aValue isEqual: videoContainerTag]) {
- [aValue retain];
- [videoContainerTag release];
- videoContainerTag = aValue;
- [self updateCodecs];
- }
- return;
-}
-
-// We do some detection of the None track to do special things.
-- (void) setTrack: (NSDictionary *) aValue
-
-{
- if ((nil != aValue || nil != track) && NO == [aValue isEqual: track]) {
- BOOL switchingFromNone = [track isEqual: [controller noneTrack]];
- BOOL switchingToNone = [aValue isEqual: [controller noneTrack]];
-
- [aValue retain];
- [track release];
- track = aValue;
-
- if (nil != aValue) {
- [self updateCodecs];
- if (YES == [self enabled]) {
- [self setSampleRate: [[self sampleRates] objectAtIndex: 0]]; // default to Auto
- }
- if (YES == switchingFromNone) {
- [controller switchingTrackFromNone: self];
- }
- if (YES == switchingToNone) {
- [controller settingTrackToNone: self];
- }
- }
- }
- return;
-}
-
-- (void) setCodec: (NSDictionary *) aValue
-
-{
- if ((nil != aValue || nil != codec) && NO == [aValue isEqual: codec]) {
- [aValue retain];
- [codec release];
- codec = aValue;
- [self updateMixdowns];
- [self updateBitRates: YES];
- }
- return;
-}
-
-- (void) setMixdown: (NSDictionary *) aValue
-
-{
- if ((nil != aValue || nil != mixdown) && NO == [aValue isEqual: mixdown]) {
- [aValue retain];
- [mixdown release];
- mixdown = aValue;
- [self updateBitRates: YES];
- [[NSNotificationCenter defaultCenter] postNotificationName: HBMixdownChangedNotification object: self];
- }
- return;
-}
-
-- (void) setSampleRate: (NSDictionary *) aValue
-
-{
- if ((nil != aValue || nil != sampleRate) && NO == [aValue isEqual: sampleRate]) {
- [aValue retain];
- [sampleRate release];
- sampleRate = aValue;
- [self updateBitRates: NO];
- }
- return;
-}
-