From 9afcf14ac3d84370390f3f92006ef3e2ed60165a Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Tue, 7 Dec 2010 15:51:19 +0000 Subject: video-texture: Add a note when get_progress() is called while seeking a CLUTTER_GST_NOTE() was missing there, leading to great confusion when looking at traces. --- clutter-gst/clutter-gst-video-texture.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'clutter-gst/clutter-gst-video-texture.c') diff --git a/clutter-gst/clutter-gst-video-texture.c b/clutter-gst/clutter-gst-video-texture.c index 5d07684..0754dd3 100644 --- a/clutter-gst/clutter-gst-video-texture.c +++ b/clutter-gst/clutter-gst-video-texture.c @@ -524,7 +524,10 @@ get_progress (ClutterGstVideoTexture *video_texture) * the last known position instead as returning 0.0 will have some ugly * effects, say on a progress bar getting updated from the progress tick. */ if (priv->in_seek) - return priv->target_progress; + { + CLUTTER_GST_NOTE (MEDIA, "get progress: %.02f", priv->target_progress); + return priv->target_progress; + } position_q = gst_query_new_position (GST_FORMAT_TIME); duration_q = gst_query_new_duration (GST_FORMAT_TIME); -- cgit v1.2.1