1
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 19:37:30 +01:00

Replace enneccesery O_RDWR with O_RDONLY

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20754 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2006-11-07 18:39:38 +00:00
parent 506cc511a7
commit b3667eaa56

View File

@ -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));