Updating branch refs/heads/0.2.2
         to caa5391efbf74824dbfbe312d83576ad7e7deb27 (commit)
       from 95b5805d911b7d0fa2a7b13aa131efbd32eec909 (commit)

commit caa5391efbf74824dbfbe312d83576ad7e7deb27
Author: Ali Abdallah <[email protected]>
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;
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to