[Xfce4-commits] <parole:master> Fix gst_format code.
Sean Davis
noreply at xfce.org
Sun Jan 13 04:06:11 CET 2013
Updating branch refs/heads/master
to 74c6d6b75f350e2defebd1125c75a04fcf71f71c (commit)
from 870e38ee9e99572e93b6af56b94e3900b53ca544 (commit)
commit 74c6d6b75f350e2defebd1125c75a04fcf71f71c
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Sat Jan 12 21:56:31 2013 -0500
Fix gst_format code.
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 dc26c51..989c37e 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, GST_FORMAT_TIME, &val) )
+ if ( gst_element_query_duration (gst->priv->playbin, format, &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, GST_FORMAT_TIME, &val) )
+ if ( gst_element_query_position (gst->priv->playbin, format, &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, GST_FORMAT_TIME, &val) )
+ if ( gst_element_query_position (gst->priv->playbin, format, &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, GST_FORMAT_TIME, &pos) )
+ if ( gst_element_query_position (gst->priv->playbin, format, &pos) )
{
TRACE ("Pos %" G_GINT64_FORMAT, pos);
ret_val = (gint) pos;
More information about the Xfce4-commits
mailing list