diff options
author | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-07 18:39:38 +0000 |
---|---|---|
committer | voroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-07 18:39:38 +0000 |
commit | b3667eaa56bb54c863634bc457768c877a07381e (patch) | |
tree | e4f06d866b2944e70eb4fa2dc11b0015be82c5cc /stream | |
parent | 506cc511a7a5ab8aa60f7cd6fbce4bef846320b6 (diff) | |
download | mpv-b3667eaa56bb54c863634bc457768c877a07381e.tar.bz2 mpv-b3667eaa56bb54c863634bc457768c877a07381e.tar.xz |
Replace enneccesery O_RDWR with O_RDONLY
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20754 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_radio.c | 2 |
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)); |