mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 04:22:27 +00:00
composition: Use the private struct directly
Co-Authored by: Thibault Saunier <tsaunier@gnome.org>
This commit is contained in:
parent
96672825d5
commit
913798ea3d
1 changed files with 9 additions and 7 deletions
|
@ -2815,23 +2815,25 @@ static gboolean
|
|||
_is_last_stack (GnlComposition * comp)
|
||||
{
|
||||
GList *tmp;
|
||||
gboolean reverse = (comp->priv->segment->rate < 0);
|
||||
gboolean should_check_objects = FALSE;
|
||||
|
||||
if (reverse && GST_CLOCK_TIME_IS_VALID (comp->priv->segment_start))
|
||||
gboolean should_check_objects = FALSE;
|
||||
GnlCompositionPrivate *priv = comp->priv;
|
||||
gboolean reverse = (priv->segment->rate < 0);
|
||||
|
||||
if (reverse && GST_CLOCK_TIME_IS_VALID (priv->segment_start))
|
||||
should_check_objects = TRUE;
|
||||
else if (!reverse && GST_CLOCK_TIME_IS_VALID (comp->priv->segment_stop))
|
||||
else if (!reverse && GST_CLOCK_TIME_IS_VALID (priv->segment_stop))
|
||||
should_check_objects = TRUE;
|
||||
|
||||
if (should_check_objects) {
|
||||
for (tmp = comp->priv->objects_stop; tmp; tmp = g_list_next (tmp)) {
|
||||
for (tmp = priv->objects_stop; tmp; tmp = g_list_next (tmp)) {
|
||||
GnlObject *object = (GnlObject *) tmp->data;
|
||||
|
||||
if (!GNL_IS_SOURCE (object))
|
||||
continue;
|
||||
|
||||
if ((!reverse && comp->priv->segment_stop < object->stop) ||
|
||||
(reverse && comp->priv->segment_start > object->start)) {
|
||||
if ((!reverse && priv->segment_stop < object->stop) ||
|
||||
(reverse && priv->segment_start > object->start)) {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue