gst/gstpad.c: Enhance debug and improve docs

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_event_default_dispatch),
(gst_pad_push_event):
Enhance debug and improve docs
* gst/gsturi.c:
Fix docs
This commit is contained in:
Stefan Kost 2006-11-06 15:18:57 +00:00
parent eb80a8aef5
commit d6c257363b
3 changed files with 21 additions and 8 deletions

View file

@ -1,3 +1,12 @@
2006-11-06 Stefan Kost <ensonic@users.sf.net>
* gst/gstpad.c: (gst_pad_event_default_dispatch),
(gst_pad_push_event):
Enhance debug and improve docs
* gst/gsturi.c:
Fix docs
2006-11-06 Stefan Kost <ensonic@users.sf.net>
* docs/random/ensonic/distributed.txt:

View file

@ -2874,8 +2874,8 @@ gst_pad_event_default_dispatch (GstPad * pad, GstEvent * event)
GList *orig, *pads;
gboolean result;
GST_INFO_OBJECT (pad, "Sending event %p to all internally linked pads",
event);
GST_INFO_OBJECT (pad, "Sending event %p (%s) to all internally linked pads",
event, GST_EVENT_TYPE_NAME (event));
result = (GST_PAD_DIRECTION (pad) == GST_PAD_SINK);
@ -3929,13 +3929,15 @@ gst_pad_push_event (GstPad * pad, GstEvent * event)
if (peerpad == NULL)
goto not_linked;
GST_LOG_OBJECT (pad, "sending event to peerpad %" GST_PTR_FORMAT, peerpad);
GST_LOG_OBJECT (pad, "sending event %s to peerpad %" GST_PTR_FORMAT,
GST_EVENT_TYPE_NAME (event), peerpad);
gst_object_ref (peerpad);
GST_OBJECT_UNLOCK (pad);
result = gst_pad_send_event (peerpad, event);
GST_LOG_OBJECT (pad, "sent event to peerpad %" GST_PTR_FORMAT, peerpad);
GST_LOG_OBJECT (pad, "sent event %s to peerpad %" GST_PTR_FORMAT,
GST_EVENT_TYPE_NAME (event), peerpad);
gst_object_unref (peerpad);
return result;
@ -4162,10 +4164,10 @@ gst_pad_get_element_private (GstPad * pad)
*
* Starts a task that repeadedly calls @func with @data. This function
* is nostly used in the pad activation function to start the
* dataflow. This function will automatically acquire the STREAM_LOCK of
* the pad before calling @func.
* dataflow. This function will automatically acquire the #GST_PAD_STREAM_LOCK
* of the pad before calling @func.
*
* Returns: a TRUE if the task could be started.
* Returns: a %TRUE if the task could be started.
*/
gboolean
gst_pad_start_task (GstPad * pad, GstTaskFunction func, gpointer data)

View file

@ -377,7 +377,9 @@ gst_uri_get_protocol (const gchar * uri)
* @uri: an URI string
* @protocol: a protocol string (e.g. "http")
*
* Returns TRUE if the protocol of a given valid URI matches @protocol.
* Checks if the protocol of a given valid URI matches @protocol.
*
* Returns: %TRUE if the protocol matches.
*
* Since: 0.10.4
*/