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/check/gstharness.c')
-rw-r--r--libs/gst/check/gstharness.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/gst/check/gstharness.c b/libs/gst/check/gstharness.c
index 7d4b2605f5..fc1ab0dafe 100644
--- a/libs/gst/check/gstharness.c
+++ b/libs/gst/check/gstharness.c
@@ -2226,8 +2226,9 @@ gst_harness_query_latency (GstHarness * h)
void
gst_harness_set_upstream_latency (GstHarness * h, GstClockTime latency)
{
- GstHarnessPrivate *priv = h->priv;
- priv->latency_min = latency;
+ g_return_if_fail (GST_CLOCK_TIME_IS_VALID (latency));
+
+ h->priv->latency_min = latency;
}
/**