< prev index next >
modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gstdatetime.c
Print this page
rev 10250 : imported patch 9-cpu-1701.patch
@@ -517,10 +517,14 @@
fields = gst_date_time_check_fields (&year, &month, &day,
&hour, &minute, &seconds);
datetime = gst_date_time_new_from_g_date_time (g_date_time_new_local (year,
month, day, hour, minute, seconds));
+#ifdef GSTREAMER_LITE
+ if (datetime == NULL)
+ return NULL;
+#endif // GSTREAMER_LITE
datetime->fields = fields;
return datetime;
}
@@ -643,10 +647,14 @@
dt = g_date_time_new (tz, year, month, day, hour, minute, seconds);
g_time_zone_unref (tz);
datetime = gst_date_time_new_from_g_date_time (dt);
+#ifdef GSTREAMER_LITE
+ if (datetime == NULL)
+ return NULL;
+#endif // GSTREAMER_LITE
datetime->fields = fields;
return datetime;
}
< prev index next >