mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
triggercontrolsource: add missing end_iter check for sequence
Avoid accessing the end-iter, this is a marker without a data field.
This commit is contained in:
parent
f9ce7e711b
commit
79d8b61a13
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ _interpolate_trigger (GstTimedValueControlSource * self, GSequenceIter * iter,
|
|||
if (GST_CLOCK_DIFF (cp->timestamp, timestamp) <= tolerance) {
|
||||
found = TRUE;
|
||||
} else {
|
||||
if ((iter = g_sequence_iter_next (iter))) {
|
||||
if ((iter = g_sequence_iter_next (iter)) && !g_sequence_iter_is_end (iter)) {
|
||||
cp = g_sequence_get (iter);
|
||||
if (GST_CLOCK_DIFF (timestamp, cp->timestamp) <= tolerance) {
|
||||
found = TRUE;
|
||||
|
|
Loading…
Reference in a new issue