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

Unified Diff: chromecast/browser/cast_browser_main_parts.cc

Issue 1223793009: Fixes to Cast use of overlays for video frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | chromecast/media/cma/filters/hole_frame_factory.h » ('j') | ui/ozone/platform/cast/DEPS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_main_parts.cc
diff --git a/chromecast/browser/cast_browser_main_parts.cc b/chromecast/browser/cast_browser_main_parts.cc
index 046e3ba40757bcaddb9f3902864cd358a2af9f67..70649b404dc886ffef5d466048221f96b7c44038 100644
--- a/chromecast/browser/cast_browser_main_parts.cc
+++ b/chromecast/browser/cast_browser_main_parts.cc
@@ -27,6 +27,7 @@
#include "chromecast/browser/cast_browser_process.h"
#include "chromecast/browser/cast_net_log.h"
#include "chromecast/browser/devtools/remote_debugging_server.h"
+#include "chromecast/browser/media/cma_message_loop.h"
#include "chromecast/browser/metrics/cast_metrics_prefs.h"
#include "chromecast/browser/metrics/cast_metrics_service_client.h"
#include "chromecast/browser/pref_service_helper.h"
@@ -390,7 +391,10 @@ void CastBrowserMainParts::PostMainMessageLoopRun() {
DeregisterKillOnAlarm();
#endif
- media::CastMediaShlib::Finalize();
+ // Finalize CastMediaShlib on media thread to ensure it's not accessed
+ // after Finalize.
+ chromecast::media::CmaMessageLoop::GetTaskRunner()->PostTask(
+ FROM_HERE, base::Bind(&media::CastMediaShlib::Finalize));
}
} // namespace shell
« no previous file with comments | « no previous file | chromecast/media/cma/filters/hole_frame_factory.h » ('j') | ui/ozone/platform/cast/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698