[vlc-commits] demux: adaptive: force access fallback for local uri
Francois Cartegnie
git at videolan.org
Mon Mar 30 16:16:28 CEST 2020
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 16 19:21:11 2019 +0200| [15e7bbf7353c0270b5de55665de8dc263736babb] | committer: Francois Cartegnie
demux: adaptive: force access fallback for local uri
allows local playback without use-access flag
(cherry picked from commit 7001edb2ddea01518f8582b84e62af0a4193886d)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=15e7bbf7353c0270b5de55665de8dc263736babb
---
modules/demux/adaptive/http/HTTPConnectionManager.cpp | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/modules/demux/adaptive/http/HTTPConnectionManager.cpp b/modules/demux/adaptive/http/HTTPConnectionManager.cpp
index dd02e3a76a..e72ab34df7 100644
--- a/modules/demux/adaptive/http/HTTPConnectionManager.cpp
+++ b/modules/demux/adaptive/http/HTTPConnectionManager.cpp
@@ -109,8 +109,13 @@ AbstractConnection * HTTPConnectionManager::getConnection(ConnectionParams ¶
if(unlikely(!factory || !downloader))
return NULL;
- if(!localAllowed && params.isLocal())
- return NULL;
+ if(params.isLocal())
+ {
+ if(!localAllowed)
+ return NULL;
+ /* Only access can read local files */
+ params.setUseAccess(true);
+ }
vlc_mutex_lock(&lock);
AbstractConnection *conn = reuseConnection(params);
More information about the vlc-commits
mailing list