Skip to content

Commit b7601d2

Browse files
committed
rtsp server: fix media type print on err
this fixes the commit 6d5c6fe (2024-08-04)
1 parent 37e2298 commit b7601d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rtsp/BasicRTSPOnlySubsession.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void BasicRTSPOnlySubsession::setSDPLines(int addressFamily) {
139139
rtsp_params.adesc.ch_count, rtpmapLine)
140140
: get_video_rtp_pt_rtpmap(rtsp_params.video_codec, rtpmapLine);
141141
if (rtpPayloadType < 0) {
142-
MSG(ERROR, "Unsupported %s codec %s!\n", mspec[avType].mname,
142+
MSG(ERROR, "Unsupported %s codec %s!\n", mspec->mname,
143143
avType == rtsp_type_audio
144144
? get_name_to_audio_codec(rtsp_params.adesc.codec)
145145
: get_codec_name(rtsp_params.video_codec));

0 commit comments

Comments
 (0)