summaryrefslogtreecommitdiffstats
path: root/stream/stream_cb.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-09-10 15:28:50 +0200
committerwm4 <wm4@nowhere>2016-09-10 15:35:22 +0200
commit5ca654301b5f959219ab92827badfa6d514402de (patch)
tree1a4870c9fd9d9df1c311e49dc05b9478cce038f3 /stream/stream_cb.c
parent7383b456823a2abd79fe2aaa3ae2c07f14ce3941 (diff)
downloadmpv-5ca654301b5f959219ab92827badfa6d514402de.tar.bz2
mpv-5ca654301b5f959219ab92827badfa6d514402de.tar.xz
stream_cb: don't add "*://" to protocol list
--list-protocol was printing a *:// entry, which looked strange at best. The "*" protocol was used to always match everything, so stream_cb.c could hook in custom protocols with a prefix chosen by the API user. Change it instead so that an empty protocol list means "match all", which also gets rid of the special-cased "*" entry.
Diffstat (limited to 'stream/stream_cb.c')
-rw-r--r--stream/stream_cb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/stream/stream_cb.c b/stream/stream_cb.c
index fdef517bb8..fa8871ddf6 100644
--- a/stream/stream_cb.c
+++ b/stream/stream_cb.c
@@ -104,5 +104,4 @@ static int open_cb(stream_t *stream)
const stream_info_t stream_info_cb = {
.name = "stream_callback",
.open = open_cb,
- .protocols = (const char*const[]){ "*", NULL },
};