@@ -178,15 +178,16 @@ int dvb_get_pmt_pid(int patfd, int sid)
while (!patread){
if (((count = read(patfd, buf, sizeof(buft))) < 0) && errno == EOVERFLOW)
- count = read(patfd, buf, sizeof(buft));
+ count = read(patfd, buf, sizeof(buft));
+
if (count < 0) {
- perror("read_sections: read error");
- return -1;
+ perror("read_sections: read error");
+ return -1;
}
section_length = ((buf[1] & 0x0f) << 8) | buf[2];
if (count != section_length + 3)
- continue;
+ continue;
buf += 8;
section_length -= 8;
@@ -748,7 +748,7 @@ static int dvb_local_dmx_get_pmt_pid(struct dvb_open_descriptor *open_dev, int s
section_length = ((buf[1] & 0x0f) << 8) | buf[2];
if (count != section_length + 3)
- continue;
+ continue;
buf += 8;
section_length -= 8;
@@ -428,7 +428,8 @@ static void restoreState()
if (node->has_outputs) {
node->s_output(state.output.index);
if (state.output.audioset)
- node->s_audout(state.aoutput.index);
+ node->s_audout(state.aoutput.index);
+
if (node->g_caps() & V4L2_CAP_MODULATOR) {
node->s_modulator(state.modulator);
node->s_frequency(state.freq);
Found with clang-tidy's readability-misleading-indentation Signed-off-by: Rosen Penev <rosenp@gmail.com> --- lib/libdvbv5/dvb-demux.c | 9 +++++---- lib/libdvbv5/dvb-dev-local.c | 2 +- utils/v4l2-compliance/v4l2-compliance.cpp | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-)