diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sys/v4l2/v4l2src_calls.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2006-09-18 Edgard Lima <edgard.lima@indt.org.br> + + * sys/v4l2/v4l2src_calls.c: (gst_v4l2src_buffer_new ): + Fix GST_BUFFER_DURATION. + 2006-09-17 Stefan Kost <ensonic@users.sf.net> * ext/hermes/gsthermescolorspace.c: diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index fdcc8bbe..7e6e09e7 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -858,7 +858,7 @@ gst_v4l2src_buffer_new (GstV4l2Src * v4l2src, guint size, guint8 * data, GST_BUFFER_FLAG_SET (buf, GST_BUFFER_FLAG_READONLY); if (v4l2src->fps_n > 0) { GST_BUFFER_DURATION (buf) = - gst_util_uint64_scale_int (GST_SECOND, v4l2src->fps_n, v4l2src->fps_d); + gst_util_uint64_scale_int (GST_SECOND, v4l2src->fps_d, v4l2src->fps_n); } else { GST_BUFFER_DURATION (buf) = GST_CLOCK_TIME_NONE; } |