Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gstevent.c')
-rw-r--r--gst/gstevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gstevent.c b/gst/gstevent.c
index 036c4f4065..9ace25a7bd 100644
--- a/gst/gstevent.c
+++ b/gst/gstevent.c
@@ -1518,6 +1518,8 @@ gst_event_new_latency (GstClockTime latency)
GstEvent *event;
GstStructure *structure;
+ g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (latency), NULL);
+
GST_CAT_INFO (GST_CAT_EVENT,
"creating latency event %" GST_TIME_FORMAT, GST_TIME_ARGS (latency));