Commit 57d6760b authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix crash in tester

parent 6aac3afa
...@@ -315,7 +315,9 @@ static void iterate_adaptive_stream(stream_manager_t * marielle, stream_manager_ ...@@ -315,7 +315,9 @@ static void iterate_adaptive_stream(stream_manager_t * marielle, stream_manager_
static void stop_adaptive_stream(stream_manager_t *marielle, stream_manager_t *margaux, bool_t destroy_files){ static void stop_adaptive_stream(stream_manager_t *marielle, stream_manager_t *margaux, bool_t destroy_files){
#if VIDEO_ENABLED #if VIDEO_ENABLED
ms_bandwidth_controller_remove_stream(margaux->bw_controller, &(margaux->video_stream->ms)); if (margaux->bw_controller) {
ms_bandwidth_controller_remove_stream(margaux->bw_controller, &(margaux->video_stream->ms));
}
#endif #endif
stream_manager_delete(marielle); stream_manager_delete(marielle);
stream_manager_delete(margaux); stream_manager_delete(margaux);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment