GST_DEBUG_OBJECT (parse, "converting bytes -> time");
*dest_value = gst_util_uint64_scale (src_value, duration, bytes);
*dest_value *= GST_MSECOND;
- GST_DEBUG_OBJECT (parse, "conversion result: %" G_GINT64_FORMAT " ms",
- *dest_value / GST_MSECOND);
+ GST_DEBUG_OBJECT (parse,
+ "converted %" G_GINT64_FORMAT " bytes to %" GST_TIME_FORMAT,
+ src_value, GST_TIME_ARGS (*dest_value));
ret = TRUE;
} else {
GST_DEBUG_OBJECT (parse, "converting bytes -> other not implemented");
*dest_value = gst_util_uint64_scale (src_value / GST_MSECOND, bytes,
duration);
GST_DEBUG_OBJECT (parse,
- "time %" G_GINT64_FORMAT " ms in bytes = %" G_GINT64_FORMAT,
- src_value / GST_MSECOND, *dest_value);
+ "converted %" GST_TIME_FORMAT " to %" G_GINT64_FORMAT " bytes",
+ GST_TIME_ARGS (src_value), *dest_value);
ret = TRUE;
} else {
GST_DEBUG_OBJECT (parse, "converting time -> other not implemented");