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
b83d0692
Commit
b83d0692
authored
Jan 08, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/OggUtil: add struct forward declarations
parent
960b9a96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
OggUtil.cxx
src/decoder/OggUtil.cxx
+2
-2
OggUtil.hxx
src/decoder/OggUtil.hxx
+6
-3
No files found.
src/decoder/OggUtil.cxx
View file @
b83d0692
...
...
@@ -23,7 +23,7 @@
bool
OggFeed
(
ogg_sync_state
&
oy
,
struct
decoder
*
decoder
,
struct
input_stream
*
input_stream
,
size_t
size
)
input_stream
*
input_stream
,
size_t
size
)
{
char
*
buffer
=
ogg_sync_buffer
(
&
oy
,
size
);
if
(
buffer
==
nullptr
)
...
...
@@ -40,7 +40,7 @@ OggFeed(ogg_sync_state &oy, struct decoder *decoder,
bool
OggExpectPage
(
ogg_sync_state
&
oy
,
ogg_page
&
page
,
struct
decoder
*
decoder
,
struct
input_stream
*
input_stream
)
decoder
*
decoder
,
input_stream
*
input_stream
)
{
while
(
true
)
{
int
r
=
ogg_sync_pageout
(
&
oy
,
&
page
);
...
...
src/decoder/OggUtil.hxx
View file @
b83d0692
...
...
@@ -26,14 +26,17 @@
#include <stddef.h>
struct
input_stream
;
struct
decoder
;
/**
* Feed data from the #input_stream into the #ogg_sync_state.
*
* @return false on error or end-of-file
*/
bool
OggFeed
(
ogg_sync_state
&
oy
,
struct
decoder
*
decoder
,
s
truct
input_stream
*
input_stream
,
s
ize_t
size
);
OggFeed
(
ogg_sync_state
&
oy
,
struct
decoder
*
decoder
,
input_stream
*
is
,
size_t
size
);
/**
* Feed into the #ogg_sync_state until a page gets available. Garbage
...
...
@@ -43,6 +46,6 @@ OggFeed(ogg_sync_state &oy, struct decoder *decoder,
*/
bool
OggExpectPage
(
ogg_sync_state
&
oy
,
ogg_page
&
page
,
struct
decoder
*
decoder
,
struct
input_stream
*
input_stream
);
decoder
*
decoder
,
input_stream
*
input_stream
);
#endif
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