EndMediaEdits
TheEndMediaEditsfunction ends a media-editing session.
pascal OSErr EndMediaEdits (Media theMedia);
theMedia- Specifies the media for this operation. Your application obtains this media identifier from such Movie Toolbox functions as
NewTrackMediaandGetTrackMedia(described on page 2-138 and page 2-190, respectively).DESCRIPTION
You use theEndMediaEditsfunction to tell the Movie Toolbox that you are done adding samples to a movie data file. The Movie Toolbox then performs the appropriate processing. For example, for disk-based media, the Movie Toolbox relinquishes write-access to the disk file. You should callEndMediaEditsonly if you successfully started a media-editing session with theBeginMediaEditsfunction, which is described in the previous section.ERROR CODES
invalidMedia -2008 This media is corrupted or invalid
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help