mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-13 15:59:50 -04:00
[scan] Remove obsolete comments
This commit is contained in:
parent
4352f54c11
commit
49de0240b8
@ -805,16 +805,13 @@ scan_metadata_ffmpeg(struct media_file_info *mfi, const char *file)
|
|||||||
|
|
||||||
/* ----------------------- Writing metadata to files ------------------------ */
|
/* ----------------------- Writing metadata to files ------------------------ */
|
||||||
|
|
||||||
// Adapted from https://stackoverflow.com/questions/2180079/how-can-i-copy-a-file-on-unix-using-c
|
|
||||||
static int
|
static int
|
||||||
fast_copy(int fd_dst, int fd_src)
|
fast_copy(int fd_dst, int fd_src)
|
||||||
{
|
{
|
||||||
// Here we use kernel-space copying for performance reasons
|
// Here we use kernel-space copying for performance reasons
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
// fcopyfile works on FreeBSD and OS X 10.5+
|
|
||||||
return fcopyfile(fd_src, fd_dst, 0, COPYFILE_ALL);
|
return fcopyfile(fd_src, fd_dst, 0, COPYFILE_ALL);
|
||||||
#else
|
#else
|
||||||
// sendfile will work with non-socket output (i.e. regular file) on Linux 2.6.33+
|
|
||||||
struct stat fileinfo = { 0 };
|
struct stat fileinfo = { 0 };
|
||||||
ssize_t bytes_copied;
|
ssize_t bytes_copied;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user