From 885c6a2610619ad3ee2b01ae7ec7670f8551d388 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 6 May 2013 20:58:54 +0200 Subject: Fix some cppcheck / scan-build warnings These were found by the cppcheck and scan-build static analyzers. Most of these aren't interesting (the 2 previous commits fix some interesting cases found by these analyzers), and they don't nearly fix all warnings. (Most of the unfixed warnings are spam, things MPlayer never cared about, or false positives.) --- stream/stream_cdda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream/stream_cdda.c') diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index 6fbd18fcc2..a99150f65d 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -312,7 +312,7 @@ static int control(stream_t *stream, int cmd, void *arg) // returning error. return STREAM_OK; } - seek_sector = track <= 0 ? p->start_sector + seek_sector = track == 0 ? p->start_sector : p->cd->disc_toc[track].dwStartSector; r = seek(stream, seek_sector * CDIO_CD_FRAMESIZE_RAW); if (r) -- cgit v1.2.3