Print v4l parser position on error
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 26 Sep 2013 20:16:24 +0000 (22:16 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 26 Sep 2013 21:49:27 +0000 (23:49 +0200)
commit87f58c2ed885d636229f7209fde883058433a1ce
tree92af07c4965a7a60469aa409765019d1e2d18a16
parentc4df9505cb1a6af6c1e7b12246b3d02f9e64597d
Print v4l parser position on error

Most parser functions take a **endp argument to indicate the caller
where parsing has stopped. This is currently only used after parsing
something successfully. This patch sets **endp to the erroneous
position in the error case and prints its position after an error
has occured.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
src/mediactl.c
src/tools.h
src/v4l2subdev.c