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

Side by Side Diff: services/media/framework_ffmpeg/ffmpeg_init.cc

Issue 1686363002: Motown: ffmpeg implementations of framework 'parts' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Retype some const unique_ptr<T>& parameters to const T&. Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "services/media/framework_ffmpeg/ffmpeg_init.h"
6
7 extern "C" {
8 #include "third_party/ffmpeg/libavformat/avformat.h"
9 }
10
11 namespace mojo {
12 namespace media {
13
14 void InitFfmpeg() {
15 static bool initialized_ = false;
johngro 2016/03/01 01:31:39 While idempotent in a purely single threaded world
dalesat 2016/03/01 20:43:02 Added a lock.
16 if (!initialized_) {
17 initialized_ = true;
18 av_register_all();
19 }
20 }
21
22 } // namespace media
23 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698