Skip to content

Commit

Permalink
[scan] Remove obsolete comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Mar 1, 2024
1 parent 4352f54 commit 49de024
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/library/filescanner_ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 49de024

Please sign in to comment.