summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-19 21:25:40 +0100
committerwm4 <wm4@nowhere>2013-12-19 21:25:40 +0100
commit1fe39b75dba8223513712e4615254b3de37664e7 (patch)
tree13ffa4ae0e53ecd1b135be7c4dfc1789916bcc63 /player/command.c
parentd2e750ccd62c144c6714c4086be6191833bff003 (diff)
downloadmpv-1fe39b75dba8223513712e4615254b3de37664e7.tar.bz2
mpv-1fe39b75dba8223513712e4615254b3de37664e7.tar.xz
command: remove radio commands
Remove these because I'm too lazy to convert them to proper STREAM_CTRLs. Considering that probably nobody uses radio://, caring about this is a complete waste of time. I will add these commands back if someone asks for them, but I don't expect this to happen.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/player/command.c b/player/command.c
index ad486fa33f..5d2fa8df50 100644
--- a/player/command.c
+++ b/player/command.c
@@ -57,7 +57,6 @@
#include "audio/decode/dec_audio.h"
#include "options/path.h"
#include "stream/tv.h"
-#include "stream/stream_radio.h"
#include "stream/pvr.h"
#if HAVE_DVBIN
#include "stream/dvbin.h"
@@ -2868,44 +2867,6 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd)
(bar_osd ? OSD_SEEK_INFO_BAR : 0);
break;
-#if HAVE_RADIO
- case MP_CMD_RADIO_STEP_CHANNEL:
- if (mpctx->stream && mpctx->stream->type == STREAMTYPE_RADIO) {
- int v = cmd->args[0].v.i;
- if (v > 0)
- radio_step_channel(mpctx->stream, RADIO_CHANNEL_HIGHER);
- else
- radio_step_channel(mpctx->stream, RADIO_CHANNEL_LOWER);
- if (radio_get_channel_name(mpctx->stream)) {
- set_osd_msg(mpctx, OSD_MSG_RADIO_CHANNEL, osdl, osd_duration,
- "Channel: %s",
- radio_get_channel_name(mpctx->stream));
- }
- }
- break;
-
- case MP_CMD_RADIO_SET_CHANNEL:
- if (mpctx->stream && mpctx->stream->type == STREAMTYPE_RADIO) {
- radio_set_channel(mpctx->stream, cmd->args[0].v.s);
- if (radio_get_channel_name(mpctx->stream)) {
- set_osd_msg(mpctx, OSD_MSG_RADIO_CHANNEL, osdl, osd_duration,
- "Channel: %s",
- radio_get_channel_name(mpctx->stream));
- }
- }
- break;
-
- case MP_CMD_RADIO_SET_FREQ:
- if (mpctx->stream && mpctx->stream->type == STREAMTYPE_RADIO)
- radio_set_freq(mpctx->stream, cmd->args[0].v.f);
- break;
-
- case MP_CMD_RADIO_STEP_FREQ:
- if (mpctx->stream && mpctx->stream->type == STREAMTYPE_RADIO)
- radio_step_freq(mpctx->stream, cmd->args[0].v.f);
- break;
-#endif
-
#if HAVE_TV
case MP_CMD_TV_START_SCAN:
if (get_tvh(mpctx))