[vlc-commits] direct3d9: use vlc_fdopen instead of fpopen
Steve Lhomme
git at videolan.org
Wed Oct 9 13:55:33 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Oct 9 10:32:52 2019 +0200| [1ec2a743a898caad8cfb4ef77bc25bc7a75c28ac] | committer: Steve Lhomme
direct3d9: use vlc_fdopen instead of fpopen
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ec2a743a898caad8cfb4ef77bc25bc7a75c28ac
---
modules/video_output/win32/direct3d9.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 1de80dac74..7c91f72b66 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -42,6 +42,7 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout_display.h>
+#include <vlc_fs.h>
#include <vlc/libvlc.h>
#include <vlc/libvlc_picture.h>
@@ -840,7 +841,7 @@ static int Direct3D9CreateShaders(vout_display_t *vd)
goto error;
}
/* Open file, find its size with fseek/ftell and read its content in a buffer. */
- fs = fopen(filepath, "rb");
+ fs = vlc_fopen(filepath, "rb");
if (!fs)
goto error;
int ret = fseek(fs, 0, SEEK_END);
More information about the vlc-commits
mailing list