aggregator: code cleanups

Fix comment typos, some copy'n'paste in logging. Add more doc comments.
This commit is contained in:
Stefan Sauer 2017-07-13 21:55:55 +02:00
parent f3bcf65f92
commit 893c11136b
2 changed files with 5 additions and 4 deletions

View file

@ -394,7 +394,7 @@ gst_audio_aggregator_src_event (GstAggregator * agg, GstEvent * event)
gst_event_parse_seek (event, &rate, &seek_format, &flags, &start_type,
&start, &stop_type, &stop);
/* Check the seeking parametters before linking up */
/* Check the seeking parameters before linking up */
if ((start_type != GST_SEEK_TYPE_NONE)
&& (start_type != GST_SEEK_TYPE_SET)) {
result = FALSE;

View file

@ -356,6 +356,8 @@ static GstFlowReturn gst_aggregator_pad_chain_internal (GstAggregator * self,
*
* This method guarantees that @func will be called only once for each
* sink pad.
*
* Returns: %FALSE if there are no sinkpads or if @func returned %FALSE
*/
gboolean
gst_aggregator_iterate_sinkpads (GstAggregator * self,
@ -779,9 +781,8 @@ check_events (GstAggregator * self, GstAggregatorPad * pad, gpointer user_data)
if (klass == NULL)
klass = GST_AGGREGATOR_GET_CLASS (self);
GST_LOG_OBJECT (pad, "Processing %" GST_PTR_FORMAT, event);
if (event) {
GST_LOG_OBJECT (pad, "Processing %" GST_PTR_FORMAT, event);
gst_event_ref (event);
ret = klass->sink_event (self, pad, event);
@ -794,7 +795,7 @@ check_events (GstAggregator * self, GstAggregatorPad * pad, gpointer user_data)
}
if (query) {
GST_LOG_OBJECT (pad, "Processing %" GST_PTR_FORMAT, event);
GST_LOG_OBJECT (pad, "Processing %" GST_PTR_FORMAT, query);
ret = klass->sink_query (self, pad, query);
PAD_LOCK (pad);