diff options
author | wm4 <wm4@nowhere> | 2019-11-07 15:28:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-11-07 22:53:13 +0100 |
commit | d3479018db4c8d61b2dca497a547615f02c2a42d (patch) | |
tree | fcedb02bdd42538337d540311bca4fe4c852f089 /stream/stream_dvb.c | |
parent | f850d82e656a9add1bd286f901f18c5213580606 (diff) | |
download | mpv-d3479018db4c8d61b2dca497a547615f02c2a42d.tar.bz2 mpv-d3479018db4c8d61b2dca497a547615f02c2a42d.tar.xz |
stream: change buffer argument types from char* to void*
This is slightly better, although not much, and ultimately doesn't
matter.
The public API in stream_cb.h also uses char*, but can't change that.
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r-- | stream/stream_dvb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index eb8adcf927..3bb6f081ff 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -730,7 +730,7 @@ void dvb_free_state(dvb_state_t *state) free(state); } -static int dvb_streaming_read(stream_t *stream, char *buffer, int size) +static int dvb_streaming_read(stream_t *stream, void *buffer, int size) { struct pollfd pfds[1]; int pos = 0, tries, rk, fd; @@ -742,7 +742,7 @@ static int dvb_streaming_read(stream_t *stream, char *buffer, int size) tries = state->retry; fd = state->dvr_fd; while (pos < size) { - rk = read(fd, &buffer[pos], (size - pos)); + rk = read(fd, (char *)buffer + pos, (size - pos)); if (rk <= 0) { if (pos || tries == 0) break; |