diff options
author | Edgard Lima <edgard.lima@indt.org.br> | 2006-09-18 15:36:14 +0000 |
---|---|---|
committer | Edgard Lima <edgard.lima@indt.org.br> | 2006-09-18 15:36:14 +0000 |
commit | 1759dfcbed01f7563ef9cd1e95d5fd5a48df282b (patch) | |
tree | 7fb9445af3437824b3c591ff423ceafababf2739 /sys/v4l2 | |
parent | 64cf8c585c10e186c22b982c19b72961e9be6a43 (diff) | |
download | gst-plugins-bad-1759dfcbed01f7563ef9cd1e95d5fd5a48df282b.tar.gz gst-plugins-bad-1759dfcbed01f7563ef9cd1e95d5fd5a48df282b.tar.bz2 gst-plugins-bad-1759dfcbed01f7563ef9cd1e95d5fd5a48df282b.zip |
Fix GST_BUFFER_DURATION.
Original commit message from CVS:
Fix GST_BUFFER_DURATION.
Diffstat (limited to 'sys/v4l2')
-rw-r--r-- | sys/v4l2/v4l2src_calls.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |