mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
audio: Add logging that was useful in figuring out the last commit
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1461>
This commit is contained in:
parent
554a2a5145
commit
945fd11907
3 changed files with 12 additions and 3 deletions
|
@ -282,6 +282,7 @@ gst_audio_aggregator_convert_pad_update_converter (GstAudioAggregatorConvertPad
|
||||||
if (in_info->finfo->format == GST_AUDIO_FORMAT_UNKNOWN) {
|
if (in_info->finfo->format == GST_AUDIO_FORMAT_UNKNOWN) {
|
||||||
/* If we haven't received caps yet, this pad should not have
|
/* If we haven't received caps yet, this pad should not have
|
||||||
* a buffer to convert anyway */
|
* a buffer to convert anyway */
|
||||||
|
GST_FIXME_OBJECT (aaggcpad, "UNREACHABLE CODE: Unknown input format");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -293,6 +294,7 @@ gst_audio_aggregator_convert_pad_update_converter (GstAudioAggregatorConvertPad
|
||||||
/* FIXME: Not converting when we need to but the config is invalid (e.g.
|
/* 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
|
* because the mix-matrix is not the right size) produces garbage. An
|
||||||
* invalid config should cause a GST_FLOW_NOT_NEGOTIATED. */
|
* invalid config should cause a GST_FLOW_NOT_NEGOTIATED. */
|
||||||
|
GST_FIXME_OBJECT (aaggcpad, "Failed to update converter");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1335,7 +1337,7 @@ gst_audio_aggregator_sink_event (GstAggregator * agg,
|
||||||
gst_event_parse_segment (event, &segment);
|
gst_event_parse_segment (event, &segment);
|
||||||
|
|
||||||
if (segment->format != GST_FORMAT_TIME) {
|
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",
|
" only TIME segments are supported",
|
||||||
gst_format_get_name (segment->format));
|
gst_format_get_name (segment->format));
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
|
|
|
@ -759,6 +759,9 @@ gst_audio_resample_process (GstAudioResample * resample, GstBuffer * inbuf,
|
||||||
in_len = srcabuf.n_samples;
|
in_len = srcabuf.n_samples;
|
||||||
out_len = gst_audio_converter_get_out_frames (resample->converter, in_len);
|
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 */
|
/* ensure that the output buffer is not bigger than what we need */
|
||||||
gst_buffer_set_size (outbuf, out_len * resample->in.bpf);
|
gst_buffer_set_size (outbuf, out_len * resample->in.bpf);
|
||||||
|
|
||||||
|
|
|
@ -3016,6 +3016,8 @@ gst_aggregator_pad_chain_internal (GstAggregator * self,
|
||||||
GstFlowReturn flow_return;
|
GstFlowReturn flow_return;
|
||||||
GstClockTime buf_pts;
|
GstClockTime buf_pts;
|
||||||
|
|
||||||
|
GST_TRACE_OBJECT (aggpad, "entering chain internal");
|
||||||
|
|
||||||
PAD_LOCK (aggpad);
|
PAD_LOCK (aggpad);
|
||||||
flow_return = aggpad->priv->flow_return;
|
flow_return = aggpad->priv->flow_return;
|
||||||
if (flow_return != GST_FLOW_OK)
|
if (flow_return != GST_FLOW_OK)
|
||||||
|
@ -3054,7 +3056,7 @@ gst_aggregator_pad_chain_internal (GstAggregator * self,
|
||||||
SRC_UNLOCK (self);
|
SRC_UNLOCK (self);
|
||||||
goto flushing;
|
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);
|
GST_OBJECT_UNLOCK (self);
|
||||||
SRC_UNLOCK (self);
|
SRC_UNLOCK (self);
|
||||||
PAD_WAIT_EVENT (aggpad);
|
PAD_WAIT_EVENT (aggpad);
|
||||||
|
@ -3112,7 +3114,7 @@ gst_aggregator_pad_chain_internal (GstAggregator * self,
|
||||||
GST_OBJECT_UNLOCK (self);
|
GST_OBJECT_UNLOCK (self);
|
||||||
SRC_UNLOCK (self);
|
SRC_UNLOCK (self);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (aggpad, "Done chaining");
|
GST_TRACE_OBJECT (aggpad, "Done chaining");
|
||||||
|
|
||||||
return flow_return;
|
return flow_return;
|
||||||
|
|
||||||
|
@ -3133,6 +3135,8 @@ gst_aggregator_pad_chain (GstPad * pad, GstObject * object, GstBuffer * buffer)
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
GstAggregatorPad *aggpad = GST_AGGREGATOR_PAD (pad);
|
GstAggregatorPad *aggpad = GST_AGGREGATOR_PAD (pad);
|
||||||
|
|
||||||
|
GST_TRACE_OBJECT (aggpad, "entering chain");
|
||||||
|
|
||||||
PAD_FLUSH_LOCK (aggpad);
|
PAD_FLUSH_LOCK (aggpad);
|
||||||
|
|
||||||
ret = gst_aggregator_pad_chain_internal (GST_AGGREGATOR_CAST (object),
|
ret = gst_aggregator_pad_chain_internal (GST_AGGREGATOR_CAST (object),
|
||||||
|
|
Loading…
Reference in a new issue