[Xfce4-commits] <parole:gst1.0> Revert "Fix gst_format code."

Sean Davis noreply at xfce.org
Sun Jan 13 04:04:05 CET 2013


Updating branch refs/heads/gst1.0
         to f3ed2e33442d10caa0ccfa00ef91d83730645313 (commit)
       from 39f3b93ade369315cadc2178ecbe7e1bf6d5737b (commit)

commit f3ed2e33442d10caa0ccfa00ef91d83730645313
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Jan 12 21:36:03 2013 -0500

    Revert "Fix gst_format code."
    
    This reverts commit 5136de02435ae60d1b5401ffa5bc158535021d1d.

 src/gst/parole-gst.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gst/parole-gst.c b/src/gst/parole-gst.c
index 989c37e..dc26c51 100644
--- a/src/gst/parole-gst.c
+++ b/src/gst/parole-gst.c
@@ -1181,7 +1181,7 @@ parole_gst_get_meta_data_dvd (ParoleGst *gst)
     format = gst_format_get_by_nick ("chapter");
 
     /* Get the number of chapters for the current title. */
-    if ( gst_element_query_duration (gst->priv->playbin, format, &val) )
+    if ( gst_element_query_duration (gst->priv->playbin, GST_FORMAT_TIME, &val) )
     {
         n_chapters = (gint) val;
         num_chapters = (guint) n_chapters;
@@ -1199,7 +1199,7 @@ parole_gst_get_meta_data_dvd (ParoleGst *gst)
     
     /* Get the current chapter. */
     val = -1;
-    if ( gst_element_query_position (gst->priv->playbin, format, &val) )
+    if ( gst_element_query_position (gst->priv->playbin, GST_FORMAT_TIME, &val) )
     {
         chapter = (guint)(gint) val;
         if ( chapter != current_chapter || num_chapters != 1 )
@@ -1784,7 +1784,7 @@ parole_gst_seek_by_format (ParoleGst *gst, GstFormat format, gint step)
 {
     gint64 val = 1;
     
-    if ( gst_element_query_position (gst->priv->playbin, format, &val) )
+    if ( gst_element_query_position (gst->priv->playbin, GST_FORMAT_TIME, &val) )
     {
 	val += step;
 	if ( !gst_element_seek (gst->priv->playbin, 1.0, format, 
@@ -2555,7 +2555,7 @@ gint parole_gst_get_current_cdda_track (ParoleGst *gst)
     
     format = gst_format_get_by_nick ("track");
     
-    if ( gst_element_query_position (gst->priv->playbin, format, &pos) )
+    if ( gst_element_query_position (gst->priv->playbin, GST_FORMAT_TIME, &pos) )
     {
 	TRACE ("Pos %" G_GINT64_FORMAT, pos);
 	ret_val = (gint) pos;


More information about the Xfce4-commits mailing list