From 49de0240b8f768ac5f0edaf7e3c4700769a63c0a Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 1 Mar 2024 23:37:17 +0100 Subject: [PATCH] [scan] Remove obsolete comments --- src/library/filescanner_ffmpeg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/library/filescanner_ffmpeg.c b/src/library/filescanner_ffmpeg.c index 6918ea24d1..9f0a10de28 100644 --- a/src/library/filescanner_ffmpeg.c +++ b/src/library/filescanner_ffmpeg.c @@ -805,16 +805,13 @@ scan_metadata_ffmpeg(struct media_file_info *mfi, const char *file) /* ----------------------- Writing metadata to files ------------------------ */ -// Adapted from https://stackoverflow.com/questions/2180079/how-can-i-copy-a-file-on-unix-using-c static int fast_copy(int fd_dst, int fd_src) { // Here we use kernel-space copying for performance reasons #if defined(__APPLE__) - // fcopyfile works on FreeBSD and OS X 10.5+ return fcopyfile(fd_src, fd_dst, 0, COPYFILE_ALL); #else - // sendfile will work with non-socket output (i.e. regular file) on Linux 2.6.33+ struct stat fileinfo = { 0 }; ssize_t bytes_copied;