From f0f83ff36600abc8715f3a11c31b2eeeda6c8c92 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 21 Oct 2014 13:16:48 +0200 Subject: player: add stream selection by ffmpeg index Apparently using the stream index is the best way to refer to the same streams across multiple FFmpeg-using programs, even if the stream index itself is rarely meaningful in any way. For Matroska, there are some possible problems, depending how FFmpeg actually adds streams. Normally they seem to match though. --- player/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'player/core.h') diff --git a/player/core.h b/player/core.h index 4d4142000c..f883ae2882 100644 --- a/player/core.h +++ b/player/core.h @@ -96,8 +96,8 @@ struct track { // IDs coming from demuxers or container files. int user_tid; - // Same as stream->demuxer_id. -1 if not set. - int demuxer_id; + int demuxer_id; // same as stream->demuxer_id. -1 if not set. + int ff_index; // same as stream->ff_index, or 0. char *title; bool default_track; -- cgit v1.2.3