OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This header is placed first to avoid compiler warning. | 5 // This header is placed first to avoid compiler warning. |
6 #include "media/tools/mfplayer/mfplayer.h" | 6 #include "media/tools/mfplayer/mfplayer.h" |
7 | 7 |
8 #include <mfapi.h> | 8 #include <mfapi.h> |
| 9 #define STRSAFE_NO_DEPRECATE |
9 #include <strsafe.h> | 10 #include <strsafe.h> |
| 11 |
10 #include <cassert> | 12 #include <cassert> |
11 | 13 |
12 namespace mfplayer { | 14 namespace mfplayer { |
13 | 15 |
14 const wchar_t g_window_title[] = L"MFBasicPlayback"; | 16 const wchar_t g_window_title[] = L"MFBasicPlayback"; |
15 const wchar_t g_window_class[] = L"Chrome_MFBasicPlayback"; | 17 const wchar_t g_window_class[] = L"Chrome_MFBasicPlayback"; |
16 | 18 |
17 // True if there is no video playing, so we have to paint the window ourselves. | 19 // True if there is no video playing, so we have to paint the window ourselves. |
18 bool g_repaint_client = true; | 20 bool g_repaint_client = true; |
19 | 21 |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 printf("Terminated\n"); | 317 printf("Terminated\n"); |
316 return retval; | 318 return retval; |
317 } | 319 } |
318 | 320 |
319 } // namespace mfplayer | 321 } // namespace mfplayer |
320 | 322 |
321 | 323 |
322 int main(int argc, char** argv) { | 324 int main(int argc, char** argv) { |
323 return mfplayer::main2(argc, argv); | 325 return mfplayer::main2(argc, argv); |
324 } | 326 } |
OLD | NEW |