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
a3142ee4
Commit
a3142ee4
authored
May 22, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/vorbis: rename struct vorbis_input_stream to VorbisInputStream
parent
437caeb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
VorbisDecoderPlugin.cxx
src/decoder/plugins/VorbisDecoderPlugin.cxx
+7
-7
No files found.
src/decoder/plugins/VorbisDecoderPlugin.cxx
View file @
a3142ee4
...
...
@@ -48,7 +48,7 @@
#include <errno.h>
struct
vorbis_input_s
tream
{
struct
VorbisInputS
tream
{
Decoder
*
decoder
;
InputStream
*
input_stream
;
...
...
@@ -57,7 +57,7 @@ struct vorbis_input_stream {
static
size_t
ogg_read_cb
(
void
*
ptr
,
size_t
size
,
size_t
nmemb
,
void
*
data
)
{
struct
vorbis_input_stream
*
vis
=
(
struct
vorbis_input_s
tream
*
)
data
;
VorbisInputStream
*
vis
=
(
VorbisInputS
tream
*
)
data
;
size_t
ret
=
decoder_read
(
vis
->
decoder
,
*
vis
->
input_stream
,
ptr
,
size
*
nmemb
);
...
...
@@ -68,7 +68,7 @@ static size_t ogg_read_cb(void *ptr, size_t size, size_t nmemb, void *data)
static
int
ogg_seek_cb
(
void
*
data
,
ogg_int64_t
offset
,
int
whence
)
{
struct
vorbis_input_stream
*
vis
=
(
struct
vorbis_input_s
tream
*
)
data
;
VorbisInputStream
*
vis
=
(
VorbisInputS
tream
*
)
data
;
Error
error
;
return
vis
->
seekable
&&
...
...
@@ -86,7 +86,7 @@ static int ogg_close_cb(gcc_unused void *data)
static
long
ogg_tell_cb
(
void
*
data
)
{
struct
vorbis_input_stream
*
vis
=
(
struct
vorbis_input_s
tream
*
)
data
;
VorbisInputStream
*
vis
=
(
VorbisInputS
tream
*
)
data
;
return
(
long
)
vis
->
input_stream
->
GetOffset
();
}
...
...
@@ -123,7 +123,7 @@ vorbis_strerror(int code)
}
static
bool
vorbis_is_open
(
struct
vorbis_input_s
tream
*
vis
,
OggVorbis_File
*
vf
,
vorbis_is_open
(
VorbisInputS
tream
*
vis
,
OggVorbis_File
*
vf
,
Decoder
*
decoder
,
InputStream
&
input_stream
)
{
vis
->
decoder
=
decoder
;
...
...
@@ -192,7 +192,7 @@ vorbis_stream_decode(Decoder &decoder,
moved it */
input_stream
.
LockRewind
(
IgnoreError
());
struct
vorbis_input_s
tream
vis
;
VorbisInputS
tream
vis
;
OggVorbis_File
vf
;
if
(
!
vorbis_is_open
(
&
vis
,
&
vf
,
&
decoder
,
input_stream
))
return
;
...
...
@@ -313,7 +313,7 @@ static bool
vorbis_scan_stream
(
InputStream
&
is
,
const
struct
tag_handler
*
handler
,
void
*
handler_ctx
)
{
struct
vorbis_input_s
tream
vis
;
VorbisInputS
tream
vis
;
OggVorbis_File
vf
;
if
(
!
vorbis_is_open
(
&
vis
,
&
vf
,
nullptr
,
is
))
...
...
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