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
b571ba27
Commit
b571ba27
authored
May 31, 2010
by
Romain Bignon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crash when decoder is NULL
parent
de8f2739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vorbis_decoder_plugin.c
src/decoder/vorbis_decoder_plugin.c
+2
-2
No files found.
src/decoder/vorbis_decoder_plugin.c
View file @
b571ba27
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
#include <tremor/ivorbisfile.h>
#include <tremor/ivorbisfile.h>
/* Macros to make Tremor's API look like libogg. Tremor always
/* Macros to make Tremor's API look like libogg. Tremor always
returns host-byte-order 16-bit signed data, and uses integer
returns host-byte-order 16-bit signed data, and uses integer
milliseconds where libogg uses double seconds.
milliseconds where libogg uses double seconds.
*/
*/
#define ov_read(VF, BUFFER, LENGTH, BIGENDIANP, WORD, SGNED, BITSTREAM) \
#define ov_read(VF, BUFFER, LENGTH, BIGENDIANP, WORD, SGNED, BITSTREAM) \
ov_read(VF, BUFFER, LENGTH, BITSTREAM)
ov_read(VF, BUFFER, LENGTH, BITSTREAM)
...
@@ -79,7 +79,7 @@ static int ogg_seek_cb(void *data, ogg_int64_t offset, int whence)
...
@@ -79,7 +79,7 @@ static int ogg_seek_cb(void *data, ogg_int64_t offset, int whence)
struct
vorbis_input_stream
*
vis
=
data
;
struct
vorbis_input_stream
*
vis
=
data
;
return
vis
->
seekable
&&
return
vis
->
seekable
&&
decoder_get_command
(
vis
->
decoder
)
!=
DECODE_COMMAND_STOP
&&
(
!
vis
->
decoder
||
decoder_get_command
(
vis
->
decoder
)
!=
DECODE_COMMAND_STOP
)
&&
input_stream_seek
(
vis
->
input_stream
,
offset
,
whence
,
NULL
)
input_stream_seek
(
vis
->
input_stream
,
offset
,
whence
,
NULL
)
?
0
:
-
1
;
?
0
:
-
1
;
}
}
...
...
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