projects
/
platform
/
upstream
/
flac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34ae241
)
minor bug fix
author
Josh Coalson
<jcoalson@users.sourceforce.net>
Sat, 7 Oct 2006 01:18:59 +0000
(
01:18
+0000)
committer
Josh Coalson
<jcoalson@users.sourceforce.net>
Sat, 7 Oct 2006 01:18:59 +0000
(
01:18
+0000)
src/flac/encode.c
patch
|
blob
|
history
diff --git
a/src/flac/encode.c
b/src/flac/encode.c
index
fb60b19
..
9cfb668
100644
(file)
--- a/
src/flac/encode.c
+++ b/
src/flac/encode.c
@@
-1651,6
+1651,12
@@
int EncoderSession_finish_error(EncoderSession *e)
{
FLAC__StreamEncoderState fse_state;
+#ifdef FLAC__HAS_OGG
+ FLAC__ASSERT(e->encoder.ogg || e->encoder.flac);
+#else
+ FLAC__ASSERT(e->encoder.flac);
+#endif
+
if(e->total_samples_to_encode > 0)
flac__utils_printf(stderr, 2, "\n");
@@
-1660,7
+1666,7
@@
int EncoderSession_finish_error(EncoderSession *e)
}
else
#endif
-
if(e->is_stdout)
{
+ {
fse_state = FLAC__stream_encoder_get_state(e->encoder.flac);
}