if (pad->map.audio_clipping && (clip_start || clip_end)) {
GST_DEBUG_OBJECT (pad,
- "Adding audio clipping %" G_GUINT64_FORMAT " %" G_GUINT64_FORMAT,
- clip_start, clip_end);
+ "Clipping %" G_GUINT64_FORMAT " %" G_GUINT64_FORMAT " (%"
+ G_GUINT64_FORMAT " / %" G_GUINT64_FORMAT ")", clip_start, clip_end,
+ clip_start + clip_end, duration);
gst_buffer_add_audio_clipping_meta (buf, GST_FORMAT_DEFAULT, clip_start,
clip_end);
}
chain->segment_stop = GST_CLOCK_TIME_NONE;
}
- GST_INFO ("segment stop %" G_GUINT64_FORMAT, chain->segment_stop);
+ GST_INFO ("segment stop %" G_GUINT64_FORMAT ", for last granule %"
+ G_GUINT64_FORMAT, chain->segment_stop, last_granule);
return GST_FLOW_OK;
}
if (pad->first_granpos < 0 || granulepos < pad->first_granpos)
pad->first_granpos = granulepos;
- if (granulepos < -pad->granule_offset)
- return 0;
-
- return granulepos + pad->granule_offset;
+ return granulepos;
}
static gint64