add operation to add generic track

Change-Id: I34e4ab14c0a5b022b77b98d9403125550024e730
This commit is contained in:
Matthew Heaney
2012-09-14 18:30:55 -07:00
parent 21a2bd14c7
commit 38173f9d49
2 changed files with 35 additions and 4 deletions

View File

@@ -668,6 +668,13 @@ class Segment {
// |ptr_writer| is NULL.
bool Init(IMkvWriter* ptr_writer);
// Adds a generic track to the segment. Returns the newly-allocated
// track object (which is owned by the segment) on success, NULL on
// error. |number| is the number to use for the track. |number|
// must be >= 0. If |number| == 0 then the muxer will decide on the
// track number.
Track* AddTrack(int32 number);
// Adds an audio track to the segment. Returns the number of the track on
// success, 0 on error. |number| is the number to use for the audio track.
// |number| must be >= 0. If |number| == 0 then the muxer will decide on