summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream_radio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index 761c8ce9a6..50a4740631 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -1011,7 +1011,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
stream->close=close_s;
stream->fill_buffer=fill_buffer_s;
- priv->radio_fd = open(radio_param_device, O_RDWR);
+ priv->radio_fd = open(radio_param_device, O_RDONLY);
if (priv->radio_fd < 0) {
mp_msg(MSGT_RADIO, MSGL_ERR, MSGTR_RADIO_UnableOpenDevice,
radio_param_device, strerror(errno));