summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-19 23:42:38 +0200
committerwm4 <wm4@nowhere>2014-10-19 23:49:42 +0200
commit1aae9925858c9463e166045e01ea591986a93375 (patch)
tree4ada805f398b5aebda6c1e4a66818d0ee47082c4 /stream
parent9ba66418790f184339ad3a891f525d54459d6369 (diff)
downloadmpv-1aae9925858c9463e166045e01ea591986a93375.tar.bz2
mpv-1aae9925858c9463e166045e01ea591986a93375.tar.xz
stream: stupid compilation workaround for win32
On win32, open() is a function-like macro. The line of code changed with this commit accidentally expanded the macro. Prevent this macro expansion. Not sure why that happened now. Since as far as I remember system functions can be defined as macros, this affects in theory not only win32.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream.c b/stream/stream.c
index 8a3d981809..61519bf012 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -312,7 +312,7 @@ static int open_internal(const stream_info_t *sinfo, struct stream *underlying,
}
}
- int r = sinfo->open(s);
+ int r = (sinfo->open)(s);
if (r != STREAM_OK) {
talloc_free(s);
return r;