path: root/player
diff options
authorAman Gupta <>2018-04-15 18:39:45 -0700
committerJan Ekström <>2018-04-17 01:01:50 +0300
commitb8de7d6ff3749e1edc66b8c675c2cce41ef866d6 (patch)
tree1c15cfd9afffc62b6aa329ef265382debef74367 /player
parentc2a24323bca735e68b002622c1083157f4efdf0c (diff)
demux, player: mark dependent tracks
ffmpeg marks audio tracks which are not meant to be played standalone as DEPENDENT. these are typically used in DVB broadcasts for audio descriptions, and are meant to be mixed into the main audio track during playback.
Diffstat (limited to 'player')
2 files changed, 2 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 70a0f824a8..7a144e597b 100644
--- a/player/command.c
+++ b/player/command.c
@@ -2242,6 +2242,7 @@ static int get_track_entry(int item, int action, void *arg, void *ctx)
{"albumart", SUB_PROP_FLAG(track->attached_picture)},
{"default", SUB_PROP_FLAG(track->default_track)},
{"forced", SUB_PROP_FLAG(track->forced_track)},
+ {"dependent", SUB_PROP_FLAG(track->dependent_track)},
{"external", SUB_PROP_FLAG(track->is_external)},
{"selected", SUB_PROP_FLAG(track->selected)},
{"external-filename", SUB_PROP_STR(track->external_filename),
diff --git a/player/core.h b/player/core.h
index 0eca484dc2..ff4719926d 100644
--- a/player/core.h
+++ b/player/core.h
@@ -134,7 +134,7 @@ struct track {
int ff_index; // same as stream->ff_index, or 0.
char *title;
- bool default_track, forced_track;
+ bool default_track, forced_track, dependent_track;
bool attached_picture;
char *lang;