err = BeginMediaEdits (theMedia);