diff options
author | Oleg Krotenko <OKrotenko@luxoft.com> | 2015-07-27 15:26:25 +0300 |
---|---|---|
committer | Oleg Krotenko <OKrotenko@luxoft.com> | 2015-07-28 17:38:14 +0300 |
commit | d9b1f27b35c538bac467c699dd759614a0589667 (patch) | |
tree | f852af0a8318492076466b56e3d18cb62b3a6392 | |
parent | 09fb62fc3731899e94fb068d02f411e449e8d8cd (diff) | |
download | smartdevicelink-d9b1f27b35c538bac467c699dd759614a0589667.tar.gz |
Fixing of core dumps when executing IGNITION_OFF. Move 'Reset' to the 'StopActivity'. APPLINK-11950
-rw-r--r-- | src/components/media_manager/src/pipe_streamer_adapter.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/media_manager/src/pipe_streamer_adapter.cc b/src/components/media_manager/src/pipe_streamer_adapter.cc index 2b2167934..5990428c6 100644 --- a/src/components/media_manager/src/pipe_streamer_adapter.cc +++ b/src/components/media_manager/src/pipe_streamer_adapter.cc @@ -88,8 +88,6 @@ void PipeStreamerAdapter::StartActivity(int32_t application_key) { current_application_ = application_key; is_ready_ = true; - messages_.Reset(); - for (std::set<MediaListenerPtr>::iterator it = media_listeners_.begin(); media_listeners_.end() != it; ++it) { @@ -110,6 +108,8 @@ void PipeStreamerAdapter::StopActivity(int32_t application_key) { is_ready_ = false; current_application_ = 0; + messages_.Reset(); + for (std::set<MediaListenerPtr>::iterator it = media_listeners_.begin(); media_listeners_.end() != it; ++it) { |