[Xfce4-commits] <parole:0.2.2> Query duration on GST_MESSAGE_DURATION only if we are playing.
Ali Abdallah
noreply at xfce.org
Tue Feb 15 21:36:01 CET 2011
Updating branch refs/heads/0.2.2
to caa5391efbf74824dbfbe312d83576ad7e7deb27 (commit)
from 95b5805d911b7d0fa2a7b13aa131efbd32eec909 (commit)
commit caa5391efbf74824dbfbe312d83576ad7e7deb27
Author: Ali Abdallah <aliov at xfce.org>
Date: Sat Dec 18 10:54:16 2010 +0100
Query duration on GST_MESSAGE_DURATION only if we are playing.
gst/parole-gst.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gst/parole-gst.c b/gst/parole-gst.c
index 8b11b52..ac21035 100644
--- a/gst/parole-gst.c
+++ b/gst/parole-gst.c
@@ -1202,8 +1202,11 @@ parole_gst_bus_event (GstBus *bus, GstMessage *msg, gpointer data)
parole_gst_application_message (gst, msg);
break;
case GST_MESSAGE_DURATION:
- TRACE ("Duration message");
- parole_gst_query_duration (gst);
+ if (gst->priv->state == GST_STATE_PLAYING)
+ {
+ TRACE ("Duration message");
+ parole_gst_query_duration (gst);
+ }
break;
case GST_MESSAGE_ELEMENT:
break;
More information about the Xfce4-commits
mailing list