aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-11 07:12:47 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-11 07:12:47 +0100
commit5fb94ed3fbd0e3942632ad617f803727ecf54169 (patch)
tree6d90f853e86dbec280f31ecab000719b816fd232
parent80696a506afcee0cca48c22448adacb4aea6eece (diff)
Youtube downloader: do not make non blocking
-rw-r--r--src/Downloader.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/Downloader.cpp b/src/Downloader.cpp
index 24f670d..cb9f448 100644
--- a/src/Downloader.cpp
+++ b/src/Downloader.cpp
@@ -5,7 +5,6 @@
#include <unistd.h>
#include <signal.h>
#include <sys/wait.h>
-#include <fcntl.h>
namespace QuickMedia {
static bool youtube_url_is_live_stream(const std::string &url) {
@@ -308,10 +307,6 @@ namespace QuickMedia {
if(res != 0)
return -1;
- int flags = fcntl(program->read_program.read_fd, F_GETFL, 0);
- if(flags != -1)
- fcntl(program->read_program.read_fd, F_SETFL, flags | O_NONBLOCK);
-
return offset;
}