Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
75b85591
Commit
75b85591
authored
Aug 25, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: load cache stream filter explicitly
parent
daf5ccc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/input/access.c
src/input/access.c
+12
-1
No files found.
src/input/access.c
View file @
75b85591
...
@@ -375,15 +375,26 @@ stream_t *stream_AccessNew(vlc_object_t *parent, input_thread_t *input,
...
@@ -375,15 +375,26 @@ stream_t *stream_AccessNew(vlc_object_t *parent, input_thread_t *input,
sys
->
block
=
NULL
;
sys
->
block
=
NULL
;
s
->
p_sys
=
sys
;
const
char
*
cachename
=
NULL
;
if
(
sys
->
access
->
pf_block
!=
NULL
)
if
(
sys
->
access
->
pf_block
!=
NULL
)
{
s
->
pf_read
=
AStreamReadBlock
;
s
->
pf_read
=
AStreamReadBlock
;
cachename
=
"cache_block"
;
}
else
else
if
(
sys
->
access
->
pf_read
!=
NULL
)
{
s
->
pf_read
=
AStreamReadStream
;
s
->
pf_read
=
AStreamReadStream
;
cachename
=
"cache_read"
;
}
s
->
pf_readdir
=
AStreamReadDir
;
s
->
pf_readdir
=
AStreamReadDir
;
s
->
pf_control
=
AStreamControl
;
s
->
pf_control
=
AStreamControl
;
s
->
pf_destroy
=
AStreamDestroy
;
s
->
pf_destroy
=
AStreamDestroy
;
s
->
p_sys
=
sys
;
if
(
cachename
!=
NULL
)
s
=
stream_FilterChainNew
(
s
,
cachename
);
return
s
;
return
s
;
error:
error:
free
(
sys
);
free
(
sys
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment