summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-01 23:47:27 +0200
committerwm4 <wm4@nowhere>2014-09-01 23:47:27 +0200
commit5f14543668f77b552b6b7690ff274736df02a9cc (patch)
tree722a8ff1ccc6f93d04a32318da5f544a7a082e42 /options
parent8d92128f6b587095b9983b17c96b68125b038a27 (diff)
downloadmpv-5f14543668f77b552b6b7690ff274736df02a9cc.tar.bz2
mpv-5f14543668f77b552b6b7690ff274736df02a9cc.tar.xz
player: simplistic HLS bitrate selection
--hls-bitrate=min/max lets you select the min or max bitrate. That's it. Something more sophisticated might be possible, but is probably not even worth the effort.
Diffstat (limited to 'options')
-rw-r--r--options/options.c3
-rw-r--r--options/options.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 00c8c0fbb5..d436cb7535 100644
--- a/options/options.c
+++ b/options/options.c
@@ -202,6 +202,9 @@ const m_option_t mp_opts[] = {
OPT_STRING("quvi-format", quvi_format, 0),
OPT_FLAG("quvi-fetch-subtitles", quvi_fetch_subtitles, 0),
+ OPT_CHOICE("hls-bitrate", hls_bitrate, M_OPT_FIXED,
+ ({"no", 0}, {"min", 1}, {"max", 2})),
+
#if HAVE_CDDA
OPT_SUBSTRUCT("cdda", stream_cdda_opts, stream_cdda_conf, 0),
OPT_STRING("cdrom-device", cdrom_device, 0),
diff --git a/options/options.h b/options/options.h
index 701c9e236b..83593c837a 100644
--- a/options/options.h
+++ b/options/options.h
@@ -123,6 +123,7 @@ typedef struct MPOpts {
char *force_configdir;
int use_filedir_conf;
int network_rtsp_transport;
+ int hls_bitrate;
struct mp_cache_opts stream_cache;
int chapterrange[2];
int edition_id;