Skip to content

Commit 7181180

Browse files
committed
change: play speed -> scale
1 parent 672cb7b commit 7181180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

librtsp/source/client/rtsp-client-play.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static const char* sc_format =
4646
"CSeq: %u\r\n"
4747
"Session: %s\r\n"
4848
"%s" // Range
49-
"%s" // Speed
49+
"%s" // Scale
5050
"%s" // Authorization: Digest xxx
5151
"User-Agent: %s\r\n"
5252
"\r\n";
@@ -73,7 +73,7 @@ int rtsp_client_play(struct rtsp_client_t *rtsp, const uint64_t *npt, const floa
7373
rtsp->progress = 0;
7474
rtsp->speed[0] = rtsp->range[0] = '\0';
7575

76-
if ( (speed && snprintf(rtsp->speed, sizeof(rtsp->speed), "Speed: %.2f\r\n", *speed) >= sizeof(rtsp->speed))
76+
if ( (speed && snprintf(rtsp->speed, sizeof(rtsp->speed), "Scale: %.2f\r\n", *speed) >= sizeof(rtsp->speed))
7777
|| (npt && snprintf(rtsp->range, sizeof(rtsp->range), "Range: npt=%" PRIu64 ".%" PRIu64 "-\r\n", *npt / 1000, *npt % 1000) >= sizeof(rtsp->range)) )
7878
return -1;
7979

0 commit comments

Comments
 (0)