From 05a345b83205d241f1e0500807c34ec7889c5825 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 5 Feb 2019 15:42:38 +0100 Subject: [PATCH] Added support for "none" track selection --- src/output/output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index c5e7fab8..3188a69f 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -416,11 +416,11 @@ namespace Mist{ /*LTS-START*/ /// Selects a specific track or set of tracks of the given trackType, using trackVal to decide. - /// trackVal may be a comma-separated list of numbers, codecs or the word "all" or an asterisk. + /// trackVal may be a comma-separated list of numbers, codecs or the word "all"/"none" or an asterisk. /// Does not do any checks if the protocol supports these tracks, just selects blindly. /// It is necessary to follow up with a selectDefaultTracks() call to strip unsupported codecs/combinations. void Output::selectTrack(const std::string &trackType, const std::string &trackVal){ - if (!trackVal.size() || trackVal == "0"){return;}//don't select anything in particular + if (!trackVal.size() || trackVal == "0" || trackVal == "none"){return;}//don't select anything in particular if (trackVal.find(',') != std::string::npos){ //Comma-separated list, recurse. std::stringstream ss(trackVal);