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 'libs/gst/base/gstbaseparse.c')
-rw-r--r--libs/gst/base/gstbaseparse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c
index f1f34798b9..b08a284906 100644
--- a/libs/gst/base/gstbaseparse.c
+++ b/libs/gst/base/gstbaseparse.c
@@ -1994,6 +1994,8 @@ gst_base_parse_add_index_entry (GstBaseParse * parse, guint64 offset,
gboolean ret = FALSE;
GstIndexAssociation associations[2];
+ g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (ts), FALSE);
+
GST_LOG_OBJECT (parse, "Adding key=%d index entry %" GST_TIME_FORMAT
" @ offset 0x%08" G_GINT64_MODIFIER "x", key, GST_TIME_ARGS (ts), offset);
@@ -4076,7 +4078,7 @@ void
gst_base_parse_set_latency (GstBaseParse * parse, GstClockTime min_latency,
GstClockTime max_latency)
{
- g_return_if_fail (min_latency != GST_CLOCK_TIME_NONE);
+ g_return_if_fail (GST_CLOCK_TIME_IS_VALID (min_latency));
g_return_if_fail (min_latency <= max_latency);
GST_OBJECT_LOCK (parse);