[totem/gnome-3-8] backend: Fix got_time_tick() debug args
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/gnome-3-8] backend: Fix got_time_tick() debug args
- Date: Thu, 25 Jul 2013 17:58:39 +0000 (UTC)
commit 07697077079494c9b345f83bb5e05cc6efaa238f
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 56fffa5..587f561 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -2178,12 +2178,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]