mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
Some quick fixes for FLAC 1.0.4
Original commit message from CVS: Some quick fixes for FLAC 1.0.4
This commit is contained in:
parent
483a804c5c
commit
01c4ae1b30
2 changed files with 4 additions and 4 deletions
|
@ -435,7 +435,7 @@ gst_flacdec_loop (GstElement *element)
|
||||||
|
|
||||||
if (flacdec->init) {
|
if (flacdec->init) {
|
||||||
FLAC__seekable_stream_decoder_init (flacdec->decoder);
|
FLAC__seekable_stream_decoder_init (flacdec->decoder);
|
||||||
FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder);
|
//FLAC__seekable_stream_decoder_process_metadata (flacdec->decoder);
|
||||||
flacdec->init = FALSE;
|
flacdec->init = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -455,7 +455,7 @@ gst_flacdec_loop (GstElement *element)
|
||||||
flacdec->seek_pending = FALSE;
|
flacdec->seek_pending = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = FLAC__seekable_stream_decoder_process_one_frame (flacdec->decoder);
|
res = FLAC__seekable_stream_decoder_process_single (flacdec->decoder);
|
||||||
if (FLAC__seekable_stream_decoder_get_state (flacdec->decoder) ==
|
if (FLAC__seekable_stream_decoder_get_state (flacdec->decoder) ==
|
||||||
FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM)
|
FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM)
|
||||||
{
|
{
|
||||||
|
|
|
@ -372,7 +372,7 @@ gst_flacenc_write_callback (const FLAC__StreamEncoder *encoder,
|
||||||
flacenc = GST_FLACENC (client_data);
|
flacenc = GST_FLACENC (client_data);
|
||||||
|
|
||||||
if (flacenc->stopped)
|
if (flacenc->stopped)
|
||||||
return FLAC__STREAM_ENCODER_WRITE_OK;
|
return FLAC__STREAM_ENCODER_OK;
|
||||||
|
|
||||||
outbuf = gst_buffer_new_and_alloc (bytes);
|
outbuf = gst_buffer_new_and_alloc (bytes);
|
||||||
|
|
||||||
|
@ -386,7 +386,7 @@ gst_flacenc_write_callback (const FLAC__StreamEncoder *encoder,
|
||||||
|
|
||||||
gst_pad_push (flacenc->srcpad, outbuf);
|
gst_pad_push (flacenc->srcpad, outbuf);
|
||||||
|
|
||||||
return FLAC__STREAM_ENCODER_WRITE_OK;
|
return FLAC__STREAM_ENCODER_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue