mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 14:48:07 +00:00
Fix error messages printed by mediastreamer2 due to empty string instead of null string.
This commit is contained in:
parent
dcdb9528e6
commit
b6678d64b6
1 changed files with 2 additions and 2 deletions
|
|
@ -2697,7 +2697,7 @@ void MediaSessionPrivate::startAudioStream (CallSession::State targetState, bool
|
|||
io.output.soundcard = playcard;
|
||||
} else {
|
||||
io.output.type = MSResourceFile;
|
||||
io.output.file = recfile.c_str();
|
||||
io.output.file = recfile.empty() ? nullptr : recfile.c_str();
|
||||
}
|
||||
} else {
|
||||
io.input.type = io.output.type = MSResourceRtp;
|
||||
|
|
@ -2711,7 +2711,7 @@ void MediaSessionPrivate::startAudioStream (CallSession::State targetState, bool
|
|||
io.output.soundcard = playcard;
|
||||
} else {
|
||||
io.output.type = MSResourceFile;
|
||||
io.output.file = recfile.c_str();
|
||||
io.output.file = recfile.empty() ? nullptr : recfile.c_str();
|
||||
}
|
||||
if (captcard) {
|
||||
io.input.type = MSResourceSoundcard;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue