mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
Add/clarify/fix some logging.
This commit is contained in:
parent
a7902054bd
commit
13221762d0
1 changed files with 6 additions and 3 deletions
|
@ -871,7 +871,7 @@ gst_flac_dec_length (const FLAC__StreamDecoder * decoder,
|
||||||
|
|
||||||
*length = len;
|
*length = len;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (flacdec, "length %" G_GINT64_FORMAT, *length);
|
GST_DEBUG_OBJECT (flacdec, "encoded byte length %" G_GINT64_FORMAT, *length);
|
||||||
|
|
||||||
#ifdef LEGACY_FLAC
|
#ifdef LEGACY_FLAC
|
||||||
return FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK;
|
return FLAC__SEEKABLE_STREAM_DECODER_LENGTH_STATUS_OK;
|
||||||
|
@ -997,6 +997,8 @@ gst_flac_dec_write (GstFlacDec * flacdec, const FLAC__Frame * frame,
|
||||||
guint j, i;
|
guint j, i;
|
||||||
GstClockTime next;
|
GstClockTime next;
|
||||||
|
|
||||||
|
GST_LOG_OBJECT (flacdec, "samples in frame header: %d", samples);
|
||||||
|
|
||||||
/* if a DEFAULT segment is configured, don't send samples past the end
|
/* if a DEFAULT segment is configured, don't send samples past the end
|
||||||
* of the segment */
|
* of the segment */
|
||||||
if (flacdec->segment.format == GST_FORMAT_DEFAULT &&
|
if (flacdec->segment.format == GST_FORMAT_DEFAULT &&
|
||||||
|
@ -2035,8 +2037,9 @@ gst_flac_dec_handle_seek_event (GstFlacDec * flacdec, GstEvent * event)
|
||||||
* a new segment. If we did not flush and the seek failed, we simply do
|
* a new segment. If we did not flush and the seek failed, we simply do
|
||||||
* nothing here and continue where we were. */
|
* nothing here and continue where we were. */
|
||||||
if (seek_ok || flush) {
|
if (seek_ok || flush) {
|
||||||
GST_DEBUG_OBJECT (flacdec, "Creating newsegment from %" G_GINT64_FORMAT
|
GST_DEBUG_OBJECT (flacdec, "Creating newsegment from %" GST_TIME_FORMAT
|
||||||
" to %" G_GINT64_FORMAT, segment.last_stop, stop);
|
" to %" GST_TIME_FORMAT, GST_TIME_ARGS (last_stop),
|
||||||
|
GST_TIME_ARGS (stop));
|
||||||
/* now replace the old segment so that we send it in the stream thread the
|
/* now replace the old segment so that we send it in the stream thread the
|
||||||
* next time it is scheduled. */
|
* next time it is scheduled. */
|
||||||
if (flacdec->start_segment)
|
if (flacdec->start_segment)
|
||||||
|
|
Loading…
Reference in a new issue