Commit 91658957 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

ext/flac/gstflacenc.c: If seeking failed return the appropiate return value to FLAC.

Original commit message from CVS:
* ext/flac/gstflacenc.c: (gst_flac_enc_seek_callback):
If seeking failed return the appropiate return value to FLAC.
Otherwise it thinks seeking was successfull and tries to rewrite
parts of the headers which then get appended to the output.
parent 426721f7
2008-08-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* ext/flac/gstflacenc.c: (gst_flac_enc_seek_callback):
If seeking failed return the appropiate return value to FLAC.
Otherwise it thinks seeking was successfull and tries to rewrite
parts of the headers which then get appended to the output.
2008-08-07 Tim-Philipp Müller <tim.muller at collabora co uk>
 
Patch by: Frederic Crozat <fcrozat@mandriva.org>
......
......@@ -797,6 +797,12 @@ gst_flac_enc_seek_callback (const FLAC__StreamEncoder * encoder,
} else {
GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " %s", absolute_byte_offset,
"failed");
#ifdef LEGACY_FLAC
return FLAC__SEEKABLE_STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED;
#else
return FLAC__STREAM_ENCODER_SEEK_STATUS_UNSUPPORTED;
#endif
}
} else {
GST_DEBUG ("Seek to %" G_GUINT64_FORMAT " failed (no peer pad)",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment