summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sourceforge.net>2006-09-18 15:48:01 +0000
committerStefan Kost <ensonic@users.sourceforge.net>2006-09-18 15:48:01 +0000
commit935f4690815111ab5bcea93fbbfa765d4d6e2440 (patch)
treed4333695748cbc1d4897faf7b6c589996e57594c /sys
parent820dc3a72dfbf9c62d226a556724732b0b223af6 (diff)
gst/videotestsrc/gstvideotestsrc.c: Use G_UNLIKELY in _create and log one more detail.
Original commit message from CVS: * gst/videotestsrc/gstvideotestsrc.c: Use G_UNLIKELY in _create and log one more detail. (gst_video_test_src_get_times), (gst_video_test_src_create): * sys/ximage/ximagesink.c: (gst_ximagesink_get_times): Use gst_util_uint64_scale_int in _get_times().
Diffstat (limited to 'sys')
-rw-r--r--sys/ximage/ximagesink.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c
index 40480db2..711451b7 100644
--- a/sys/ximage/ximagesink.c
+++ b/sys/ximage/ximagesink.c
@@ -1452,7 +1452,9 @@ gst_ximagesink_get_times (GstBaseSink * bsink, GstBuffer * buf,
*end = *start + GST_BUFFER_DURATION (buf);
} else {
if (ximagesink->fps_n > 0) {
- *end = *start + (GST_SECOND * ximagesink->fps_d) / ximagesink->fps_n;
+ *end = *start +
+ gst_util_uint64_scale_int (GST_SECOND, ximagesink->fps_d,
+ ximagesink->fps_n);
}
}
}