Commit f8a41308 authored by Jonathan Matthew's avatar Jonathan Matthew 🕳

xfade: report position for playing but unlinked streams correctly

If the stream isn't currently linked, we won't get anything useful
by querying the pipeline position, instead query the stream.
parent 245fa889
Pipeline #241582 passed with stage
in 9 minutes and 55 seconds
......@@ -2735,7 +2735,7 @@ get_times_and_stream (RBPlayerGstXFade *player, RBXFadeStream **pstream, gint64
if (pos != NULL) {
if (buffering) {
*pos = 0;
} else if (stream->state == PAUSED) {
} else if (stream->state == PAUSED || stream->adder_pad == NULL) {
*pos = -1;
gst_element_query_position (stream->volume, GST_FORMAT_TIME, pos);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment