Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1162)

Unified Diff: media/filters/chunk_demuxer.cc

Issue 11142029: Merge 161369 - Clear source_id_{audio,video}_ after RemoveId. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1271/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.cc
===================================================================
--- media/filters/chunk_demuxer.cc (revision 162008)
+++ media/filters/chunk_demuxer.cc (working copy)
@@ -708,11 +708,17 @@
stream_parser_map_.erase(id);
source_info_map_.erase(id);
- if (source_id_audio_ == id && audio_)
- audio_->Shutdown();
+ if (source_id_audio_ == id) {
+ if (audio_)
+ audio_->Shutdown();
+ source_id_audio_.clear();
+ }
- if (source_id_video_ == id && video_)
- video_->Shutdown();
+ if (source_id_video_ == id) {
+ if (video_)
+ video_->Shutdown();
+ source_id_video_.clear();
+ }
}
Ranges<TimeDelta> ChunkDemuxer::GetBufferedRanges(const std::string& id) const {
« no previous file with comments | « no previous file | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698