}
if (demux->input_period) {
- GST_DEBUG_OBJECT (demux, "Closing previous period");
- demux->input_period->closed = TRUE;
+ GST_DEBUG_OBJECT (demux, "Marking that previous period has a next one");
+ demux->input_period->has_next_period = TRUE;
}
GST_DEBUG_OBJECT (demux, "Setting up new period");
goto restart;
if (global_output_position == GST_CLOCK_STIME_NONE
- && demux->output_period->closed) {
+ && demux->output_period->has_next_period) {
GST_DEBUG_OBJECT (demux, "Period %d is drained, switching to next period",
demux->output_period->period_num);
if (!gst_adaptive_demux_advance_output_period (demux)) {
gboolean prepared;
- /* TRUE if the period no longer receives any data (i.e. it is closed) */
- gboolean closed;
+ /* TRUE if there is another period after this one */
+ gboolean has_next_period;
/* An increasing unique identifier for the period.
*