summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-07-07 23:41:42 +0200
committerUoti Urpala <uau@mplayer2.org>2011-07-09 04:23:24 +0300
commit2174cbfa2fd153e7a77ba5ef7167d2bf99057330 (patch)
treef22f58f4a272b99d22b939fcd4fdeb27198680a5 /stream
parent6794bca0e96ac288eab7248431080afe29152564 (diff)
downloadmpv-2174cbfa2fd153e7a77ba5ef7167d2bf99057330.tar.bz2
mpv-2174cbfa2fd153e7a77ba5ef7167d2bf99057330.tar.xz
cleanup: silence most of the clang warnings
Diffstat (limited to 'stream')
-rw-r--r--stream/realrtsp/real.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c
index a383f0d75d..f7bd0cc5ba 100644
--- a/stream/realrtsp/real.c
+++ b/stream/realrtsp/real.c
@@ -614,9 +614,10 @@ autherr:
convert_timestamp(str, &e_ss, &e_ms);
free(str);
}
- str = buf + sprintf(buf, s_ms ? "%s%d.%d-" : "%s%d-", "Range: npt=", s_ss, s_ms);
- if (e_ss || e_ms)
- sprintf(str, e_ms ? "%d.%d" : "%d", e_ss, e_ms);
+ if (s_ms) str = buf + sprintf(buf, "%s%d.%d-", "Range: npt=", s_ss, s_ms);
+ else str = buf + sprintf(buf, "%s%d-" , "Range: npt=", s_ss );
+ if (e_ms) sprintf(str, "%d.%d", e_ss, e_ms);
+ else if (e_ss) sprintf(str, "%d", e_ss );
}
rtsp_schedule_field(rtsp_session, buf);
/* and finally send a play request */