[Xfce4-commits] <parole:0.2.2> Query stream duration on-ready state always, fixes DVD duration query.

Ali Abdallah noreply at xfce.org
Wed Jan 13 21:24:01 CET 2010


Updating branch refs/heads/0.2.2
         to 674e8e4b123860c08e7ab3d0efc033ff312fdfbd (commit)
       from 1a8bdef646375f1c56568343079915297ea5625a (commit)

commit 674e8e4b123860c08e7ab3d0efc033ff312fdfbd
Author: Ali Abdallah <aliov at xfce.org>
Date:   Wed Jan 13 19:14:32 2010 +0100

    Query stream duration on-ready state always, fixes DVD duration query.

 gst/parole-gst.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/gst/parole-gst.c b/gst/parole-gst.c
index d5e1c5a..c66fca5 100644
--- a/gst/parole-gst.c
+++ b/gst/parole-gst.c
@@ -930,12 +930,11 @@ parole_gst_evaluate_state (ParoleGst *gst, GstState old, GstState new, GstState
 	    break;
 	}
 	case GST_STATE_PAUSED:
-	    if ( old == GST_STATE_READY )
-	    {
-		parole_gst_query_duration (gst);
-		parole_gst_query_capabilities (gst);
-		parole_gst_query_info (gst);
-	    }
+	{
+	    parole_gst_query_duration (gst);
+	    parole_gst_query_capabilities (gst);
+	    parole_gst_query_info (gst);
+
 	    if ( gst->priv->target == GST_STATE_PLAYING )
 	    {
 		if ( gst->priv->update_color_balance )
@@ -946,7 +945,9 @@ parole_gst_evaluate_state (ParoleGst *gst, GstState old, GstState new, GstState
 	    g_signal_emit (G_OBJECT (gst), signals [MEDIA_STATE], 0, 
 			   gst->priv->stream, PAROLE_MEDIA_STATE_PAUSED);
 	    break;
+	}
 	case GST_STATE_READY:
+	{
 	    gst->priv->buffering = FALSE;
 	    gst->priv->media_state = PAROLE_MEDIA_STATE_STOPPED;
 	    g_signal_emit (G_OBJECT (gst), signals [MEDIA_STATE], 0, 
@@ -966,12 +967,15 @@ parole_gst_evaluate_state (ParoleGst *gst, GstState old, GstState new, GstState
 		parole_gst_helper_draw_logo (PAROLE_GST_HELPER (gst));
 	    }
 	    break;
+	}
 	case GST_STATE_NULL:
+	{
 	    gst->priv->buffering = FALSE;
 	    gst->priv->media_state = PAROLE_MEDIA_STATE_STOPPED;
 	    g_signal_emit (G_OBJECT (gst), signals [MEDIA_STATE], 0, 
 			   gst->priv->stream, PAROLE_MEDIA_STATE_STOPPED);
 	    break;
+	}
 	default:
 	    break;
     }



More information about the Xfce4-commits mailing list