mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
nlecomposition: Fix the get_current_position method
This commit is contained in:
parent
d419bccf4f
commit
6a371b308b
1 changed files with 7 additions and 3 deletions
|
@ -1382,10 +1382,14 @@ get_current_position (NleComposition * comp)
|
||||||
|
|
||||||
beach:
|
beach:
|
||||||
|
|
||||||
if (GST_CLOCK_TIME_IS_VALID (comp->priv->segment_start)) {
|
if (!GST_CLOCK_TIME_IS_VALID (value)) {
|
||||||
GST_INFO_OBJECT (comp, "Current position is unknown, " "setting it to 0");
|
if (GST_CLOCK_TIME_IS_VALID (comp->priv->segment_start)) {
|
||||||
|
value = comp->priv->segment_start;
|
||||||
|
} else {
|
||||||
|
GST_INFO_OBJECT (comp, "Current position is unknown, " "setting it to 0");
|
||||||
|
|
||||||
value = 0;
|
value = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (guint64) value;
|
return (guint64) value;
|
||||||
|
|
Loading…
Reference in a new issue