summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2010-07-27 17:30:42 +0200
committerEdward Hervey <bilboed@bilboed.com>2010-07-27 17:30:42 +0200
commit6ccae521b21017c84a7b9c76e4996de6d76d6b79 (patch)
tree5f02488aa50bce3810af9415ee1b65293f93eea0
parentd79550cd93ab2b56c816f6c3d9cd97cc44947eb1 (diff)
gnlcomposition: Don't discard QoS event for current segment.
curdiff will be zero in the first segment
-rw-r--r--gnl/gnlcomposition.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnl/gnlcomposition.c b/gnl/gnlcomposition.c
index f9fb9e8..3c64594 100644
--- a/gnl/gnlcomposition.c
+++ b/gnl/gnlcomposition.c
@@ -990,7 +990,9 @@ gnl_composition_event_handler (GstPad * ghostpad, GstEvent * event)
curdiff =
comp->priv->segment_start - comp->priv->outside_segment->start;
- if ((timestamp < curdiff) || (curdiff < timestamp - diff)) {
+ GST_DEBUG ("curdiff %" GST_TIME_FORMAT, GST_TIME_ARGS (curdiff));
+ if ((curdiff != 0) && ((timestamp < curdiff)
+ || (curdiff < timestamp - diff))) {
GST_DEBUG_OBJECT (comp,
"QoS event outside of current segment, discarding");
/* The QoS timestamp is before the currently set-up pipeline */