Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
datetime: Improve documentation a bit to explain when NULL is returned
  • Loading branch information
sdroege committed Dec 7, 2020
1 parent c35d471 commit 16733a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gst/gstdatetime.c
Expand Up @@ -70,14 +70,14 @@ static void gst_date_time_free (GstDateTime * datetime);

/**
* 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.
*
* Free-function: gst_date_time_unref
*
* Returns: (transfer full) (nullable): a newly created #GstDateTime,
* or %NULL on error
* or %NULL if @dt is %NULL.
*/
GstDateTime *
gst_date_time_new_from_g_date_time (GDateTime * dt)
Expand Down Expand Up @@ -106,7 +106,8 @@ gst_date_time_new_from_g_date_time (GDateTime * dt)
* Free-function: g_date_time_unref
*
* 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 *
gst_date_time_to_g_date_time (GstDateTime * datetime)
Expand Down

0 comments on commit 16733a8

Please sign in to comment.