projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clock: Fix deprecation handling of the GstClock clock field
[platform/upstream/gstreamer.git]
/
gst
/
gstdatetime.c
diff --git
a/gst/gstdatetime.c
b/gst/gstdatetime.c
index
67cdd6c
..
cea0f70
100644
(file)
--- a/
gst/gstdatetime.c
+++ b/
gst/gstdatetime.c
@@
-196,7
+196,7
@@
gst_date_time_has_second (const GstDateTime * datetime)
* @datetime: a #GstDateTime
*
* Returns the year of this #GstDateTime
* @datetime: a #GstDateTime
*
* Returns the year of this #GstDateTime
- * Call gst_date_time_has_year before, to avoid warnings.
+ * Call gst_date_time_has_year
()
before, to avoid warnings.
*
* Return value: The year of this #GstDateTime
*/
*
* Return value: The year of this #GstDateTime
*/
@@
-213,7
+213,7
@@
gst_date_time_get_year (const GstDateTime * datetime)
* @datetime: a #GstDateTime
*
* Returns the month of this #GstDateTime. January is 1, February is 2, etc..
* @datetime: a #GstDateTime
*
* Returns the month of this #GstDateTime. January is 1, February is 2, etc..
- * Call gst_date_time_has_month before, to avoid warnings.
+ * Call gst_date_time_has_month
()
before, to avoid warnings.
*
* Return value: The month of this #GstDateTime
*/
*
* Return value: The month of this #GstDateTime
*/
@@
-231,7
+231,7
@@
gst_date_time_get_month (const GstDateTime * datetime)
* @datetime: a #GstDateTime
*
* Returns the day of the month of this #GstDateTime.
* @datetime: a #GstDateTime
*
* Returns the day of the month of this #GstDateTime.
- * Call gst_date_time_has_day before, to avoid warnings.
+ * Call gst_date_time_has_day
()
before, to avoid warnings.
*
* Return value: The day of this #GstDateTime
*/
*
* Return value: The day of this #GstDateTime
*/
@@
-250,7
+250,7
@@
gst_date_time_get_day (const GstDateTime * datetime)
*
* Retrieves the hour of the day represented by @datetime in the gregorian
* calendar. The return is in the range of 0 to 23.
*
* Retrieves the hour of the day represented by @datetime in the gregorian
* calendar. The return is in the range of 0 to 23.
- * Call gst_date_time_has_
haur
before, to avoid warnings.
+ * Call gst_date_time_has_
time()
before, to avoid warnings.
*
* Return value: the hour of the day
*/
*
* Return value: the hour of the day
*/
@@
-269,7
+269,7
@@
gst_date_time_get_hour (const GstDateTime * datetime)
*
* Retrieves the minute of the hour represented by @datetime in the gregorian
* calendar.
*
* Retrieves the minute of the hour represented by @datetime in the gregorian
* calendar.
- * Call gst_date_time_has_
minute
before, to avoid warnings.
+ * Call gst_date_time_has_
time()
before, to avoid warnings.
*
* Return value: the minute of the hour
*/
*
* Return value: the minute of the hour
*/
@@
-288,7
+288,7
@@
gst_date_time_get_minute (const GstDateTime * datetime)
*
* Retrieves the second of the minute represented by @datetime in the gregorian
* calendar.
*
* Retrieves the second of the minute represented by @datetime in the gregorian
* calendar.
- * Call gst_date_time_has_
second
before, to avoid warnings.
+ * Call gst_date_time_has_
time()
before, to avoid warnings.
*
* Return value: the second represented by @datetime
*/
*
* Return value: the second represented by @datetime
*/
@@
-498,7
+498,7
@@
gst_date_time_check_fields (gint * year, gint * month, gint * day,
*
* Free-function: gst_date_time_unref
*
*
* Free-function: gst_date_time_unref
*
- * Return value: (transfer full): the newly created #GstDateTime
+ * Return value: (transfer full)
(nullable)
: the newly created #GstDateTime
*/
GstDateTime *
gst_date_time_new_local_time (gint year, gint month, gint day, gint hour,
*/
GstDateTime *
gst_date_time_new_local_time (gint year, gint month, gint day, gint hour,
@@
-607,7
+607,7
@@
__gst_date_time_compare (const GstDateTime * dt1, const GstDateTime * dt2)
*
* Free-function: gst_date_time_unref
*
*
* Free-function: gst_date_time_unref
*
- * Return value: (transfer full): the newly created #GstDateTime
+ * Return value: (transfer full)
(nullable)
: the newly created #GstDateTime
*/
GstDateTime *
gst_date_time_new (gfloat tzoffset, gint year, gint month, gint day, gint hour,
*/
GstDateTime *
gst_date_time_new (gfloat tzoffset, gint year, gint month, gint day, gint hour,
@@
-922,6
+922,11
@@
static void
gst_date_time_free (GstDateTime * datetime)
{
g_date_time_unref (datetime->datetime);
gst_date_time_free (GstDateTime * datetime)
{
g_date_time_unref (datetime->datetime);
+
+#ifdef USE_POISONING
+ memset (datetime, 0xff, sizeof (GstDateTime));
+#endif
+
g_slice_free (GstDateTime, datetime);
}
g_slice_free (GstDateTime, datetime);
}