summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9095a2)
raw | patch | inline | side by side (parent: a9095a2)
author | Wim Taymans <wim.taymans@collabora.co.uk> | |
Fri, 28 Aug 2009 16:35:54 +0000 (18:35 +0200) | ||
committer | Wim Taymans <wim.taymans@collabora.co.uk> | |
Fri, 28 Aug 2009 16:36:45 +0000 (18:36 +0200) |
Add GST_CLOCK typecheck for _set_clock().
Allow setting NULL indexes on element (clear the current index)
Some whitespace fixes.
Allow setting NULL indexes on element (clear the current index)
Some whitespace fixes.
gst/gstelement.c | patch | blob | history |
diff --git a/gst/gstelement.c b/gst/gstelement.c
index 68d63f45774bde493c966cc9fb9011470197e1ea..ad1bf6751229fd2435193198f68b8fbf7defeb01 100644 (file)
--- a/gst/gstelement.c
+++ b/gst/gstelement.c
@@ -327,7 +327,7 @@ gst_element_default_error (GObject * object, GstObject * source, GError * error,
* Makes the element free the previously requested pad as obtained
* with gst_element_get_request_pad().
*
- * This does not unref the pad. If the pad was created by using
+ * This does not unref the pad. If the pad was created by using
* gst_element_get_request_pad(), gst_element_release_request_pad() needs to be
* followed by gst_object_unref() to free the @pad.
*
GstClock **clock_p;
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
+ g_return_val_if_fail (clock == NULL || GST_IS_CLOCK (clock), FALSE);
oclass = GST_ELEMENT_GET_CLASS (element);
* @element: a #GstElement.
*
* Returns the start time of the element. The start time is the
- * running time of the clock when this element was last put to PAUSED.
+ * running time of the clock when this element was last put to PAUSED.
*
* Usually the start_time is managed by a toplevel element such as
- * #GstPipeline.
+ * #GstPipeline.
*
* MT safe.
*
GstElementClass *oclass;
g_return_if_fail (GST_IS_ELEMENT (element));
- g_return_if_fail (GST_IS_INDEX (index));
+ g_return_if_fail (index == NULL || GST_IS_INDEX (index));
oclass = GST_ELEMENT_GET_CLASS (element);
* @classification: String describing the type of element, as an unordered list
* separated with slashes ('/'). See draft-klass.txt of the design docs
* for more details and common types. E.g: "Sink/File"
- * @description: Sentence describing the purpose of the element.
+ * @description: Sentence describing the purpose of the element.
* E.g: "Write stream to a file"
- * @author: Name and contact details of the author(s). Use \n to separate
+ * @author: Name and contact details of the author(s). Use \n to separate
* multiple author details. E.g: "Joe Bloggs <joe.blogs at foo.com>"
*
- * Sets the detailed information for a #GstElementClass. Simpler version of
+ * Sets the detailed information for a #GstElementClass. Simpler version of
* gst_element_class_set_details() that generates less linker overhead.
* <note>This function is for use in _base_init functions only.</note>
*