[rhythmbox] xfade: report position for playing but unlinked streams correctly
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] xfade: report position for playing but unlinked streams correctly
- Date: Sun, 27 Dec 2020 03:54:42 +0000 (UTC)
commit f8a41308ededda16f3aee65794f78ce51e29e6c3
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Dec 5 20:59:19 2020 +1000
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.
backends/gstreamer/rb-player-gst-xfade.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/backends/gstreamer/rb-player-gst-xfade.c b/backends/gstreamer/rb-player-gst-xfade.c
index ebc270960..3c058b278 100644
--- a/backends/gstreamer/rb-player-gst-xfade.c
+++ b/backends/gstreamer/rb-player-gst-xfade.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]