Skip to content

Commit c8d0527

Browse files
committed
rtsp mp3 examples: use encoder for fmt info
1 parent 10e5877 commit c8d0527

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/examples-communication/rtsp/communication-player_mp3-rtsp/communication-player_mp3-rtsp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const char* wifi = "SSID";
1212
const char* password = "password";
1313

1414
// rtsp
15-
RTSPFormatMP3 mp3format; // RTSP mp3
1615
MP3ParserEncoder enc; // mp3 packaging
16+
RTSPFormatMP3 mp3format(enc); // RTSP mp3
1717
MetaDataFilterEncoder filter(enc);
1818
RTSPOutput<RTSPPlatformWiFi> rtsp_out(mp3format, filter);
1919
AudioSourceSDMMC source("/", ".mp3");

tests-cmake/rtsp/rtsp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
int port = 8554;
88

99
// rtsp
10-
RTSPFormatMP3 mp3format; // RTSP mp3
1110
MP3ParserEncoder enc; // mp3 packaging
11+
RTSPFormatMP3 mp3format(enc); // RTSP mp3
1212
MetaDataFilterEncoder filter(enc);
1313
RTSPOutput<RTSPPlatformWiFi> rtsp_out(mp3format, filter);
1414
AudioSourceSTD source("/home/pschatzmann/Music/Elvis Costello/Best Of/", ".mp3");

0 commit comments

Comments
 (0)