Skip to content

Commit

Permalink
Fix RTSP server segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Aug 30, 2021
1 parent fa649c4 commit d38ac84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rRTSPServer/src/rRTSPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,16 @@ int main(int argc, char** argv)
nr_level = nm;
}

// Begin by setting up our usage environment:
TaskScheduler* scheduler = BasicTaskScheduler::createNew();
env = BasicUsageEnvironment::createNew(*scheduler);

// If fifo doesn't exist, disable audio
if (stat (inputAudioFileName, &stat_buffer) != 0) {
*env << "Audio fifo does not exist, disabling audio.n";
audio = 0;
}

// Begin by setting up our usage environment:
TaskScheduler* scheduler = BasicTaskScheduler::createNew();
env = BasicUsageEnvironment::createNew(*scheduler);

UserAuthenticationDatabase* authDB = NULL;

if ((user[0] != '\0') && (pwd[0] != '\0')) {
Expand Down

0 comments on commit d38ac84

Please sign in to comment.