summaryrefslogtreecommitdiff
path: root/src/CommandLine.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-09-21 13:01:51 +0200
committerMax Kellermann <max@musicpd.org>2020-09-21 14:53:18 +0200
commit85849c93964161c15cc0cec7e68bb4917ee93bcd (patch)
tree86da2f7d606d26521012b5668e96975ea511b679 /src/CommandLine.cxx
parentd3c257d97d4ff7671f7761745fd3c5fd23fecc5f (diff)
decoder/plugin: add method protocols()
Similar to commit 4e2a551f30c1e1db13933d15c44d9186a2f37959 but for decoder plugins. This is tailored for the FFmpeg decoder plugin which implements some protocols (e.g. RTSP) as demuxer plugin.
Diffstat (limited to 'src/CommandLine.cxx')
-rw-r--r--src/CommandLine.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CommandLine.cxx b/src/CommandLine.cxx
index 1413d5374..96d5be4b1 100644
--- a/src/CommandLine.cxx
+++ b/src/CommandLine.cxx
@@ -154,6 +154,10 @@ static void version()
for (; *suffixes != nullptr; ++suffixes)
printf(" %s", *suffixes);
+ if (plugin.protocols != nullptr)
+ for (const auto &i : plugin.protocols())
+ printf(" %s", i.c_str());
+
printf("\n");
});