summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2010-12-07 15:51:19 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2010-12-07 15:51:19 +0000
commit9afcf14ac3d84370390f3f92006ef3e2ed60165a (patch)
treedd335c092e61c173792849d05b57505e1c02f3f4
parent128f0165bd84271871a1d7e0a2c2a52c392a4d26 (diff)
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.
-rw-r--r--clutter-gst/clutter-gst-video-texture.c5
1 files changed, 4 insertions, 1 deletions
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);