From 1fe39b75dba8223513712e4615254b3de37664e7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Dec 2013 21:25:40 +0100 Subject: 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. --- player/command.c | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'player/command.c') 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)) -- cgit v1.2.3