summaryrefslogtreecommitdiff
path: root/src/qcam/main_window.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-04-19 12:06:46 +0200
committerJacopo Mondi <jacopo@jmondi.org>2019-04-19 14:11:09 +0200
commit6647db6f42dbb080cb066b435591d72eb7bea770 (patch)
treebfa70a60e0c0943ab536f92e0bef1e6ea10819ec /src/qcam/main_window.h
parent323f21b56ba6e79f4aac0915f39ec317ada7e5fe (diff)
libcamera: camera: Reset basefield to decimal
When logging the camera configuration, the same ostringstream instance is used to assemble a message describing configuration of all the configured streams. After the first stream configuration has been assembled, the use of std::hex modifies the ostringstream basefield, causing all successive integers values inserted in the stream to be expressed as hexadecimals. Fix that by resetting the stream's basefield to decimal, before assembling a stream configuration description. Before this patch: INFO Camera camera.cpp:615 (0) 640x480-0x3231564e (1) 140xa0-0x3231564e After this patch: INFO Camera camera.cpp:616 (0) 640x480-0x3231564e (1) 320x160-0x3231564e Fixes: 9c9078133216 ("libcamera: camera: Log requested configuration in configureStreams()") Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/qcam/main_window.h')
0 files changed, 0 insertions, 0 deletions