From bd5dfc1241075706b61b316fd2f2efb82d1a47ca Mon Sep 17 00:00:00 2001 From: alexcohn Date: Sat, 6 Mar 2021 22:49:04 +0200 Subject: [PATCH] fixing #634 attempted to close file descriptor XX, expected to be unowned, actually owned by ParcelFileDescriptor XXX --- android/app/src/main/cpp/saf_wrapper.c | 1 - 1 file changed, 1 deletion(-) diff --git a/android/app/src/main/cpp/saf_wrapper.c b/android/app/src/main/cpp/saf_wrapper.c index b57070b81..5c270bea4 100644 --- a/android/app/src/main/cpp/saf_wrapper.c +++ b/android/app/src/main/cpp/saf_wrapper.c @@ -91,7 +91,6 @@ static AVIOContext *create_fd_avio_context(const char *filename, int flags) { static void close_fd_avio_context(AVIOContext *ctx) { if (fd_seek(ctx->opaque, 0, AVSEEK_SIZE) >= 0) { int fd = (int)ctx->opaque; - close(fd); closeParcelFileDescriptor(fd); } ctx->opaque = NULL;