Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
1dfe9205
Commit
1dfe9205
authored
Oct 18, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: make internal functions static
The mpdurl_* code is internal, don't expose them. Also don't initialize struct members with NULL.
parent
90fdf07a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
22 deletions
+12
-22
ffmpeg_plugin.c
src/inputPlugins/ffmpeg_plugin.c
+12
-22
No files found.
src/inputPlugins/ffmpeg_plugin.c
View file @
1dfe9205
...
...
@@ -48,25 +48,7 @@ typedef struct {
InputStream
*
input
;
}
FopsHelper
;
int
mpdurl_open
(
URLContext
*
h
,
const
char
*
filename
,
int
flags
);
int
mpdurl_read
(
URLContext
*
h
,
unsigned
char
*
buf
,
int
size
);
int64_t
mpdurl_seek
(
URLContext
*
h
,
int64_t
pos
,
int
whence
);
int
mpdurl_close
(
URLContext
*
h
);
URLProtocol
mpdurl_fileops
=
{
.
name
=
"mpd"
,
.
url_open
=
mpdurl_open
,
.
url_read
=
mpdurl_read
,
.
url_write
=
NULL
,
.
url_seek
=
mpdurl_seek
,
.
url_close
=
mpdurl_close
,
.
next
=
NULL
,
.
url_read_pause
=
NULL
,
.
url_read_seek
=
NULL
};
int
mpdurl_open
(
URLContext
*
h
,
const
char
*
filename
,
int
flags
)
static
int
mpdurl_open
(
URLContext
*
h
,
const
char
*
filename
,
int
flags
)
{
uint32_t
ptr
;
FopsHelper
*
base
;
...
...
@@ -84,7 +66,7 @@ int mpdurl_open(URLContext *h, const char *filename, int flags)
return
-
1
;
}
int
mpdurl_read
(
URLContext
*
h
,
unsigned
char
*
buf
,
int
size
)
static
int
mpdurl_read
(
URLContext
*
h
,
unsigned
char
*
buf
,
int
size
)
{
int
ret
;
FopsHelper
*
base
=
(
FopsHelper
*
)
h
->
priv_data
;
...
...
@@ -107,7 +89,7 @@ int mpdurl_read(URLContext *h, unsigned char *buf, int size)
return
ret
;
}
int64_t
mpdurl_seek
(
URLContext
*
h
,
int64_t
pos
,
int
whence
)
static
int64_t
mpdurl_seek
(
URLContext
*
h
,
int64_t
pos
,
int
whence
)
{
FopsHelper
*
base
=
(
FopsHelper
*
)
h
->
priv_data
;
if
(
whence
!=
AVSEEK_SIZE
)
{
//only ftell
...
...
@@ -116,7 +98,7 @@ int64_t mpdurl_seek(URLContext *h, int64_t pos, int whence)
return
base
->
input
->
offset
;
}
int
mpdurl_close
(
URLContext
*
h
)
static
int
mpdurl_close
(
URLContext
*
h
)
{
FopsHelper
*
base
=
(
FopsHelper
*
)
h
->
priv_data
;
if
(
base
&&
base
->
input
->
seekable
)
{
...
...
@@ -126,6 +108,14 @@ int mpdurl_close(URLContext *h)
return
0
;
}
static
URLProtocol
mpdurl_fileops
=
{
.
name
=
"mpd"
,
.
url_open
=
mpdurl_open
,
.
url_read
=
mpdurl_read
,
.
url_seek
=
mpdurl_seek
,
.
url_close
=
mpdurl_close
,
};
static
int
ffmpeg_init
(
void
)
{
av_register_all
();
...
...
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