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

Ali Abdallah noreply at xfce.org
Wed Jan 13 19:26:04 CET 2010


Updating branch refs/heads/master
         to d25c2d636007f87c8afce47f0ca60eea64267583 (commit)
       from 2191db595fa6dd9125297f612ff0edaa8c5d093d (commit)

commit d25c2d636007f87c8afce47f0ca60eea64267583
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 35db181..cb30a38 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