[vlc-devel] [PATCH 2/2] adaptive: downloader: remove useless savecancel

Alexandre Janniaux ajanni at videolabs.io
Wed Sep 16 00:43:48 CEST 2020


Cancellation is not used at all for this thread in the Downloader code
and the thread is owned by the Downloader itself.
---
 modules/demux/adaptive/http/Downloader.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/demux/adaptive/http/Downloader.cpp b/modules/demux/adaptive/http/Downloader.cpp
index 74a19b28de..666c86abdb 100644
--- a/modules/demux/adaptive/http/Downloader.cpp
+++ b/modules/demux/adaptive/http/Downloader.cpp
@@ -80,9 +80,7 @@ void Downloader::cancel(HTTPChunkBufferedSource *source)
 void * Downloader::downloaderThread(void *opaque)
 {
     Downloader *instance = static_cast<Downloader *>(opaque);
-    int canc = vlc_savecancel();
     instance->Run();
-    vlc_restorecancel( canc );
     return NULL;
 }
 
-- 
2.28.0



More information about the vlc-devel mailing list