summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-08-05 18:07:12 +0200
committerwm4 <wm4@nowhere>2013-08-05 19:18:22 +0200
commit3be39ed76c743647873201942012c43acdcd89a8 (patch)
tree8cb3812cd8db0fd871d59f8f1d6755c16341f21e /stream
parentee2e3b3374c4756dc881962bea4e4615805a8122 (diff)
downloadmpv-3be39ed76c743647873201942012c43acdcd89a8.tar.bz2
mpv-3be39ed76c743647873201942012c43acdcd89a8.tar.xz
stream_radio: fix some things
Using the radio set/step channel commands would have crashed (that was broken for about a year, nobody ever noticed). The "capture" part of a radio:// URI was incorrectly passed (this was broken quite recently). Still couldn't test it fully. I have no radio device. I suspect nobody uses this feature or will ever use it again.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_radio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index 56a01c7d7c..5fdf22ba9e 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -120,7 +120,7 @@ typedef struct radio_driver_s {
#define OPT_BASE_STRUCT radio_param_t
static const m_option_t stream_opts_fields[] = {
OPT_FLOAT("title", freq_channel, 0),
- OPT_STRING("device", capture, 0),
+ OPT_STRING("capture", capture, 0),
{0}
};
@@ -967,7 +967,7 @@ const stream_info_t stream_info_radio = {
.options = stream_opts_fields,
.url_options = {
{"hostname", "freqchannel"},
- {"username", "capture"},
+ {"filename", "capture"},
{0}
},
};