summaryrefslogtreecommitdiffstats
path: root/stream/vcd_read_win32.h
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-21 16:54:58 -0300
committerwm4 <wm4@nowhere>2013-07-22 02:52:04 +0200
commitdb9102765afe9f8904ff299632dc09a5035a3eb8 (patch)
tree891f75c69058ef09453be5db2a09c1a2940680ac /stream/vcd_read_win32.h
parent58338f9240f459953fa647124dbffe75e0a79622 (diff)
downloadmpv-db9102765afe9f8904ff299632dc09a5035a3eb8.tar.bz2
mpv-db9102765afe9f8904ff299632dc09a5035a3eb8.tar.xz
stream_vcd.c: fix compilation on win32
The mp_vcd_priv_t struct doesn't have a file descriptor but a file handle on win32.
Diffstat (limited to 'stream/vcd_read_win32.h')
-rw-r--r--stream/vcd_read_win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/vcd_read_win32.h b/stream/vcd_read_win32.h
index f70e2b5ed3..cf587316af 100644
--- a/stream/vcd_read_win32.h
+++ b/stream/vcd_read_win32.h
@@ -132,6 +132,8 @@ static mp_vcd_priv_t* vcd_read_toc(int fd)
return vcd;
}
+#define vcd_close(priv) (CloseHandle(((mp_vcd_priv_t*)priv)->hd))
+
static int vcd_read(mp_vcd_priv_t* vcd, char *mem)
{
DWORD dwBytesReturned;