mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +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:
|
||||
|
||||
if (GST_CLOCK_TIME_IS_VALID (comp->priv->segment_start)) {
|
||||
GST_INFO_OBJECT (comp, "Current position is unknown, " "setting it to 0");
|
||||
if (!GST_CLOCK_TIME_IS_VALID (value)) {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue