Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1461>
if (in_info->finfo->format == GST_AUDIO_FORMAT_UNKNOWN) {
/* If we haven't received caps yet, this pad should not have
* a buffer to convert anyway */
+ GST_FIXME_OBJECT (aaggcpad, "UNREACHABLE CODE: Unknown input format");
return;
}
/* FIXME: Not converting when we need to but the config is invalid (e.g.
* because the mix-matrix is not the right size) produces garbage. An
* invalid config should cause a GST_FLOW_NOT_NEGOTIATED. */
+ GST_FIXME_OBJECT (aaggcpad, "Failed to update converter");
return;
}
gst_event_parse_segment (event, &segment);
if (segment->format != GST_FORMAT_TIME) {
- GST_ERROR_OBJECT (agg, "Segment of type %s are not supported,"
+ GST_ERROR_OBJECT (aggpad, "Segment of type %s are not supported,"
" only TIME segments are supported",
gst_format_get_name (segment->format));
gst_event_unref (event);
in_len = srcabuf.n_samples;
out_len = gst_audio_converter_get_out_frames (resample->converter, in_len);
+ GST_DEBUG_OBJECT (resample, "in %" G_GSIZE_FORMAT " frames, out %"
+ G_GSIZE_FORMAT " frames", in_len, out_len);
+
/* ensure that the output buffer is not bigger than what we need */
gst_buffer_set_size (outbuf, out_len * resample->in.bpf);
GstFlowReturn flow_return;
GstClockTime buf_pts;
+ GST_TRACE_OBJECT (aggpad, "entering chain internal");
+
PAD_LOCK (aggpad);
flow_return = aggpad->priv->flow_return;
if (flow_return != GST_FLOW_OK)
SRC_UNLOCK (self);
goto flushing;
}
- GST_DEBUG_OBJECT (aggpad, "Waiting for buffer to be consumed");
+ GST_DEBUG_OBJECT (aggpad, "Waiting for buffer to be consumed (chain)");
GST_OBJECT_UNLOCK (self);
SRC_UNLOCK (self);
PAD_WAIT_EVENT (aggpad);
GST_OBJECT_UNLOCK (self);
SRC_UNLOCK (self);
- GST_DEBUG_OBJECT (aggpad, "Done chaining");
+ GST_TRACE_OBJECT (aggpad, "Done chaining");
return flow_return;
GstFlowReturn ret;
GstAggregatorPad *aggpad = GST_AGGREGATOR_PAD (pad);
+ GST_TRACE_OBJECT (aggpad, "entering chain");
+
PAD_FLUSH_LOCK (aggpad);
ret = gst_aggregator_pad_chain_internal (GST_AGGREGATOR_CAST (object),