summaryrefslogtreecommitdiffstats
path: root/mpvcore/resolve.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-09-10 16:38:34 +0200
committerwm4 <wm4@nowhere>2013-09-10 16:38:34 +0200
commitcf0e852fcdd4f6e223d76f21ce27f89681bd6e74 (patch)
treea004e0bf29f48d3486d368947e58dab450da28e7 /mpvcore/resolve.h
parentc9a740fccd1128e43542beeec6f50bc59c2bddb9 (diff)
downloadmpv-cf0e852fcdd4f6e223d76f21ce27f89681bd6e74.tar.bz2
mpv-cf0e852fcdd4f6e223d76f21ce27f89681bd6e74.tar.xz
quvi: coerce libquvi 0.4 support into allowing format switching
libquvi 0.4 doesn't allow us listing the formats supported by a streaming site without doing additional network accesses, so switching formats was not supported with it. (It's different with libquvi 0.9.) But the most important case is switching between SD and HD. Usually, --quvi-format=default will get SD, while --quvi-format=best gives HD. Use this, and pretend that an URL supported by libquvi 0.4 supports both of these. "cycle quvi-format" will switch between these. If the user specifies something else via --quvi-format, this is included in the list of switchable formats additionally to "default" and "best".
Diffstat (limited to 'mpvcore/resolve.h')
-rw-r--r--mpvcore/resolve.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/resolve.h b/mpvcore/resolve.h
index 91684df250..7a60b29114 100644
--- a/mpvcore/resolve.h
+++ b/mpvcore/resolve.h
@@ -38,7 +38,7 @@ struct mp_resolve_result {
};
struct mp_resolve_src {
- char *url;
+ char *url; // can be NULL; otherwise it's the exact video URL
char *encid; // indicates quality level, contents are libquvi specific
};