summaryrefslogtreecommitdiff
path: root/sys/v4l
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2005-11-23 13:25:54 (GMT)
committerJan Schmidt <thaytan@mad.scientist.com>2005-11-23 13:25:54 (GMT)
commitbe23dbd7d93249c5d7f28431b0e248c543373ae3 (patch)
tree921d405364aa617bfce480eef9722ad695be507f /sys/v4l
parent67b21a903302e8975a6b0db3f206ac3fff8799a2 (diff)
downloadgst-plugins-base-be23dbd7d93249c5d7f28431b0e248c543373ae3.tar.gz
gst-plugins-base-be23dbd7d93249c5d7f28431b0e248c543373ae3.tar.xz
Updates for API changes
Original commit message from CVS: * ext/libvisual/visual.c: (gst_visual_src_setcaps), (get_buffer), (gst_visual_chain): * ext/theora/theoraenc.c: (theora_enc_sink_setcaps): * gst/videorate/gstvideorate.c: (gst_videorate_setcaps), (gst_videorate_chain): * gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_src_fixate), (gst_videotestsrc_create): * sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_get_fps), (gst_v4lmjpegsrc_src_convert), (gst_v4lmjpegsrc_src_query), (gst_v4lmjpegsrc_get), (gst_v4lmjpegsrc_getcaps): * sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_get_fps), (gst_v4lsrc_get_fps_list), (gst_v4lsrc_buffer_new): Updates for API changes
Diffstat (limited to 'sys/v4l')
-rw-r--r--sys/v4l/gstv4lmjpegsrc.c8
-rw-r--r--sys/v4l/v4lsrc_calls.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/v4l/gstv4lmjpegsrc.c b/sys/v4l/gstv4lmjpegsrc.c
index c4f2429..288be3d 100644
--- a/sys/v4l/gstv4lmjpegsrc.c
+++ b/sys/v4l/gstv4lmjpegsrc.c
@@ -330,7 +330,7 @@ gst_v4lmjpegsrc_src_convert (GstPad * pad,
case GST_FORMAT_DEFAULT:
switch (*dest_format) {
case GST_FORMAT_TIME:
- *dest_value = src_value * gst_util_clock_time_scale (GST_SECOND,
+ *dest_value = src_value * gst_util_uint64_scale_int (GST_SECOND,
gst_value_get_fraction_denominator (&fps),
gst_value_get_fraction_numerator (&fps));
break;
@@ -363,7 +363,7 @@ gst_v4lmjpegsrc_src_query (GstPad * pad,
case GST_QUERY_POSITION:
switch (*format) {
case GST_FORMAT_TIME:
- *value = v4lmjpegsrc->handled * gst_util_clock_time_scale (GST_SECOND,
+ *value = v4lmjpegsrc->handled * gst_util_uint64_scale_int (GST_SECOND,
gst_value_get_fraction_denominator (&fps),
gst_value_get_fraction_numerator (&fps));
break;
@@ -519,11 +519,11 @@ gst_v4lmjpegsrc_get (GstPad * pad)
if (v4lmjpegsrc->use_fixed_fps) {
g_value_init (&fps, GST_VALUE_FRACTION);
- duration = gst_util_clock_time_scale (GST_SECOND,
+ duration = gst_util_uint64_scale_int (GST_SECOND,
gst_value_get_fraction_denominator (&fps),
gst_value_get_fraction_numerator (&fps));
cur_frame_time =
- gst_util_clock_time_scale (v4lmjpegsrc->handled * GST_SECOND,
+ gst_util_uint64_scale_int (v4lmjpegsrc->handled * GST_SECOND,
gst_value_get_fraction_denominator (&fps),
gst_value_get_fraction_numerator (&fps));
diff --git a/sys/v4l/v4lsrc_calls.c b/sys/v4l/v4lsrc_calls.c
index 18f07d7..b51d40a 100644
--- a/sys/v4l/v4lsrc_calls.c
+++ b/sys/v4l/v4lsrc_calls.c
@@ -713,7 +713,7 @@ gst_v4lsrc_buffer_new (GstV4lSrc * v4lsrc, gint num)
GST_BUFFER_TIMESTAMP (buf) -= GST_ELEMENT (v4lsrc)->base_time;
/* FIXME: this is a most ghetto timestamp/duration */
- GST_BUFFER_DURATION (buf) = gst_util_clock_time_scale (GST_SECOND,
+ GST_BUFFER_DURATION (buf) = gst_util_uint64_scale_int (GST_SECOND,
fps_n, fps_d);
/* the negotiate() method already set caps on the source pad */