Skip to content

Commit

Permalink
Fixed crash when enablingSlideShowBelowSpatialLayer when un initializ…
Browse files Browse the repository at this point in the history
…ed (#1309)
  • Loading branch information
lodoyun authored Oct 2, 2018
1 parent 8b4692c commit b37a5c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erizo/src/erizo/rtp/QualityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,13 @@ void QualityManager::enableSlideShowBelowSpatialLayer(bool enable, int spatial_l
enable_slideshow_below_spatial_layer_ = enable;
slideshow_below_spatial_layer_ = spatial_layer;

stream_->notifyMediaStreamEvent("slideshow_fallback_update", "false");
if (!initialized_) {
return;
}

stream_->notifyMediaStreamEvent("slideshow_fallback_update", "false");
freeze_fallback_active_ = false;

selectLayer(true);
}

Expand Down

0 comments on commit b37a5c1

Please sign in to comment.