mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 23:42:28 +00:00
element: better type checks
Add GST_CLOCK typecheck for _set_clock(). Allow setting NULL indexes on element (clear the current index) Some whitespace fixes.
This commit is contained in:
parent
a9095a2d73
commit
a3f9908266
1 changed files with 8 additions and 7 deletions
|
@ -451,6 +451,7 @@ gst_element_set_clock (GstElement * element, GstClock * clock)
|
|||
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);
|
||||
|
||||
|
@ -653,7 +654,7 @@ gst_element_set_index (GstElement * element, GstIndex * index)
|
|||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue