[totem/gnome-3-6: 1/3] backend: Reset stop seek values correctly



commit f32df3a4fd9bc5fbd8eaa2a1fb550e0e2d10e015
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Jul 22 03:04:14 2012 +0100

    backend: Reset stop seek values correctly

 src/backend/bacon-video-widget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index 8e19d13..ae9dc8a 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -4002,7 +4002,7 @@ bacon_video_widget_dvd_event (BaconVideoWidget * bvw,
         val += dir;
         GST_DEBUG ("seeking to %s: %" G_GINT64_FORMAT, fmt_name, val);
         gst_element_seek (bvw->priv->play, FORWARD_RATE, fmt, GST_SEEK_FLAG_FLUSH,
-            GST_SEEK_TYPE_SET, val, GST_SEEK_TYPE_NONE, 0);
+            GST_SEEK_TYPE_SET, val, GST_SEEK_TYPE_NONE, G_GINT64_CONSTANT (0));
 	bvw->priv->rate = FORWARD_RATE;
         g_object_set (bvw->priv->audio_pitchcontrol, "pitch", 1.0, NULL);
       } else {
@@ -5889,7 +5889,7 @@ bvw_set_playback_direction (BaconVideoWidget *bvw, gboolean forward)
       event = gst_event_new_seek (FORWARD_RATE,
 				  GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE,
 				  GST_SEEK_TYPE_SET, cur,
-				  GST_SEEK_TYPE_SET, GST_CLOCK_TIME_NONE);
+				  GST_SEEK_TYPE_SET, G_GINT64_CONSTANT (0));
       if (gst_element_send_event (bvw->priv->play, event) == FALSE) {
 	GST_WARNING ("Failed to set playback direction to forward");
       } else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]