Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
ca2e3e47
Commit
ca2e3e47
authored
10 years ago
by
Zhang Rui
Committed by
Michael Niedermayer
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
avformat/cache: pass options to the underlying protocol via the url_open2
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
958836f8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/cache.c
+3
-3
3 additions, 3 deletions
libavformat/cache.c
with
3 additions
and
3 deletions
libavformat/cache.c
+
3
−
3
View file @
ca2e3e47
...
@@ -70,7 +70,7 @@ static int cmp(void *key, const void *node)
...
@@ -70,7 +70,7 @@ static int cmp(void *key, const void *node)
return
(
*
(
int64_t
*
)
key
)
-
((
const
CacheEntry
*
)
node
)
->
logical_pos
;
return
(
*
(
int64_t
*
)
key
)
-
((
const
CacheEntry
*
)
node
)
->
logical_pos
;
}
}
static
int
cache_open
(
URLContext
*
h
,
const
char
*
arg
,
int
flags
)
static
int
cache_open
(
URLContext
*
h
,
const
char
*
arg
,
int
flags
,
AVDictionary
**
options
)
{
{
char
*
buffername
;
char
*
buffername
;
Context
*
c
=
h
->
priv_data
;
Context
*
c
=
h
->
priv_data
;
...
@@ -86,7 +86,7 @@ static int cache_open(URLContext *h, const char *arg, int flags)
...
@@ -86,7 +86,7 @@ static int cache_open(URLContext *h, const char *arg, int flags)
unlink
(
buffername
);
unlink
(
buffername
);
av_freep
(
&
buffername
);
av_freep
(
&
buffername
);
return
ffurl_open
(
&
c
->
inner
,
arg
,
flags
,
&
h
->
interrupt_callback
,
NULL
);
return
ffurl_open
(
&
c
->
inner
,
arg
,
flags
,
&
h
->
interrupt_callback
,
options
);
}
}
static
int
add_entry
(
URLContext
*
h
,
const
unsigned
char
*
buf
,
int
size
)
static
int
add_entry
(
URLContext
*
h
,
const
unsigned
char
*
buf
,
int
size
)
...
@@ -313,7 +313,7 @@ static const AVClass cache_context_class = {
...
@@ -313,7 +313,7 @@ static const AVClass cache_context_class = {
URLProtocol
ff_cache_protocol
=
{
URLProtocol
ff_cache_protocol
=
{
.
name
=
"cache"
,
.
name
=
"cache"
,
.
url_open
=
cache_open
,
.
url_open
2
=
cache_open
,
.
url_read
=
cache_read
,
.
url_read
=
cache_read
,
.
url_seek
=
cache_seek
,
.
url_seek
=
cache_seek
,
.
url_close
=
cache_close
,
.
url_close
=
cache_close
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment