[vlc-commits] adaptive: downloader: remove useless savecancel

Alexandre Janniaux git at videolan.org
Fri Sep 18 21:01:55 CEST 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Sep 16 00:43:48 2020 +0200| [1ec799f3ddd8def60b41c725693489f6d38c9eae] | committer: Alexandre Janniaux

adaptive: downloader: remove useless savecancel

Cancellation is not used at all for this thread in the Downloader code
and the thread is owned by the Downloader itself.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ec799f3ddd8def60b41c725693489f6d38c9eae
---

 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;
 }
 



More information about the vlc-commits mailing list