Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9057bc2b authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] solo6x10: use v4l2_get_timestamp to fill in buffer timestamp



The timestamp of a v4l2_buffer was advertised as being CLOCK_MONOTONIC,
but instead a timestamp from a header field was used. This is inconsistent
and not what applications expect. Use v4l2_get_timestamp to properly
set the timestamp.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 02a34b6a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -531,8 +531,7 @@ static int solo_enc_fillbuf(struct solo_enc_dev *solo_enc,

	if (!ret) {
		vbuf->sequence = solo_enc->sequence++;
		vbuf->timestamp.tv_sec = vop_sec(vh);
		vbuf->timestamp.tv_usec = vop_usec(vh);
		v4l2_get_timestamp(&vbuf->timestamp);

		/* Check for motion flags */
		if (solo_is_motion_on(solo_enc) && enc_buf->motion) {