filesink: Fix Windows build by using _commit instead of fsync.
authorJan Schmidt <jan@centricular.com>
Mon, 8 Jun 2015 14:52:34 +0000 (00:52 +1000)
committerJan Schmidt <jan@centricular.com>
Mon, 8 Jun 2015 14:52:34 +0000 (00:52 +1000)
plugins/elements/gstfilesink.c

index 3751150..bbea358 100644 (file)
@@ -60,6 +60,8 @@
 #define ftruncate _chsize
 #ifdef _MSC_VER                 /* Check if we are using MSVC, fileno is deprecated in favour */
 #define fileno _fileno          /* of _fileno */
+#undef fsync
+#define fsync _commit
 #endif
 #endif