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
290347c4
Commit
290347c4
authored
Nov 04, 2008
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4: use decoder_read() instead of input_stream_read()
decoder_read() handles decoder commands, and should be used in decoder plugins.
parent
9ecfc57c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mp4_plugin.c
src/decoder/mp4_plugin.c
+4
-1
No files found.
src/decoder/mp4_plugin.c
View file @
290347c4
...
...
@@ -29,6 +29,7 @@
/* all code here is either based on or copied from FAAD2's frontend code */
struct
mp4_context
{
struct
decoder
*
decoder
;
struct
input_stream
*
input_stream
;
};
...
...
@@ -77,7 +78,7 @@ mp4_read(void *user_data, void *buffer, uint32_t length)
{
struct
mp4_context
*
ctx
=
user_data
;
return
input_stream_read
(
ctx
->
input_stream
,
buffer
,
length
);
return
decoder_read
(
ctx
->
decoder
,
ctx
->
input_stream
,
buffer
,
length
);
}
static
uint32_t
...
...
@@ -93,6 +94,7 @@ static bool
mp4_decode
(
struct
decoder
*
mpd_decoder
,
struct
input_stream
*
input_stream
)
{
struct
mp4_context
ctx
=
{
.
decoder
=
mpd_decoder
,
.
input_stream
=
input_stream
,
};
mp4ff_callback_t
callback
=
{
...
...
@@ -313,6 +315,7 @@ mp4_load_tag(const char *file)
struct
tag
*
ret
=
NULL
;
struct
input_stream
input_stream
;
struct
mp4_context
ctx
=
{
.
decoder
=
NULL
,
.
input_stream
=
&
input_stream
,
};
mp4ff_callback_t
callback
=
{
...
...
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