From b3667eaa56bb54c863634bc457768c877a07381e Mon Sep 17 00:00:00 2001 From: voroshil Date: Tue, 7 Nov 2006 18:39:38 +0000 Subject: Replace enneccesery O_RDWR with O_RDONLY git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20754 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_radio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3