[vlc-commits] adaptive: PlaylistManager: remove savecancel

Alexandre Janniaux git at videolan.org
Thu Nov 12 14:15:20 CET 2020


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Sun Nov  1 12:34:17 2020 +0100| [b7f6debac6e981c97be9443128e39224a4731f5e] | committer: Alexandre Janniaux

adaptive: PlaylistManager: remove savecancel

We don't use cancellation in this code.

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

 modules/demux/adaptive/PlaylistManager.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/modules/demux/adaptive/PlaylistManager.cpp b/modules/demux/adaptive/PlaylistManager.cpp
index 164ba0949e..1f0ecbec4b 100644
--- a/modules/demux/adaptive/PlaylistManager.cpp
+++ b/modules/demux/adaptive/PlaylistManager.cpp
@@ -646,21 +646,17 @@ void PlaylistManager::Run()
 
         if(needsUpdate())
         {
-            int canc = vlc_savecancel();
             if(updatePlaylist())
                 scheduleNextUpdate();
             else
                 failedupdates++;
-            vlc_restorecancel(canc);
         }
 
         vlc_mutex_lock(&demux.lock);
         vlc_tick_t i_nzpcr = demux.i_nzpcr;
         vlc_mutex_unlock(&demux.lock);
 
-        int canc = vlc_savecancel();
         AbstractStream::buffering_status i_return = bufferize(i_nzpcr, i_min_buffering, i_extra_buffering);
-        vlc_restorecancel( canc );
 
         if(i_return != AbstractStream::buffering_lessthanmin)
         {



More information about the vlc-commits mailing list