mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
datetime: Improve documentation a bit to explain when NULL is returned
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/706>
This commit is contained in:
parent
c35d47127b
commit
16733a82f4
1 changed files with 4 additions and 3 deletions
|
@ -70,14 +70,14 @@ static void gst_date_time_free (GstDateTime * datetime);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_date_time_new_from_g_date_time:
|
* gst_date_time_new_from_g_date_time:
|
||||||
* @dt: (transfer full): the #GDateTime. The new #GstDateTime takes ownership.
|
* @dt: (transfer full) (nullable): the #GDateTime. The new #GstDateTime takes ownership.
|
||||||
*
|
*
|
||||||
* Creates a new #GstDateTime from a #GDateTime object.
|
* Creates a new #GstDateTime from a #GDateTime object.
|
||||||
*
|
*
|
||||||
* Free-function: gst_date_time_unref
|
* Free-function: gst_date_time_unref
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (nullable): a newly created #GstDateTime,
|
* Returns: (transfer full) (nullable): a newly created #GstDateTime,
|
||||||
* or %NULL on error
|
* or %NULL if @dt is %NULL.
|
||||||
*/
|
*/
|
||||||
GstDateTime *
|
GstDateTime *
|
||||||
gst_date_time_new_from_g_date_time (GDateTime * dt)
|
gst_date_time_new_from_g_date_time (GDateTime * dt)
|
||||||
|
@ -106,7 +106,8 @@ gst_date_time_new_from_g_date_time (GDateTime * dt)
|
||||||
* Free-function: g_date_time_unref
|
* Free-function: g_date_time_unref
|
||||||
*
|
*
|
||||||
* Returns: (transfer full) (nullable): a newly created #GDateTime, or
|
* Returns: (transfer full) (nullable): a newly created #GDateTime, or
|
||||||
* %NULL on error
|
* %NULL on error or if @datetime does not have a year, month, day, hour,
|
||||||
|
* minute and second.
|
||||||
*/
|
*/
|
||||||
GDateTime *
|
GDateTime *
|
||||||
gst_date_time_to_g_date_time (GstDateTime * datetime)
|
gst_date_time_to_g_date_time (GstDateTime * datetime)
|
||||||
|
|
Loading…
Reference in a new issue