[totem] backend: Fix got_time_tick() debug args
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] backend: Fix got_time_tick() debug args
- Date: Mon, 18 Mar 2013 13:08:40 +0000 (UTC)
commit 5aff74fb1d5f9fe31a06d73a5a4338d231cf5551
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 18 10:23:31 2013 +0100
backend: Fix got_time_tick() debug args
The current_time and stream_length are in milliseconds,
not nanoseconds as GST_TIME_FORMAT/GST_TIME_ARGS expect.
src/backend/bacon-video-widget.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index c56486f..1aef5ed 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -2197,12 +2197,12 @@ got_time_tick (GstElement * play, gint64 time_nanos, BaconVideoWidget * bvw)
bvw->priv->is_live = (bvw->priv->stream_length == 0);
/*
- GST_DEBUG ("%" GST_TIME_FORMAT ",%" GST_TIME_FORMAT " %s",
- GST_TIME_ARGS (bvw->priv->current_time),
- GST_TIME_ARGS (bvw->priv->stream_length),
+ GST_DEBUG ("current time: %" GST_TIME_FORMAT ", stream length: %" GST_TIME_FORMAT ", seekable: %s",
+ GST_TIME_ARGS (bvw->priv->current_time * GST_MSECOND),
+ GST_TIME_ARGS (bvw->priv->stream_length * GST_MSECOND),
(seekable) ? "TRUE" : "FALSE");
*/
-
+
g_signal_emit (bvw, bvw_signals[SIGNAL_TICK], 0,
bvw->priv->current_time, bvw->priv->stream_length,
bvw->priv->current_position,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]