| OLD | NEW |
| 1 // Copyright (c) 2011 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 // Stand alone media player application used for testing the media library. | 5 // Stand alone media player application used for testing the media library. |
| 6 | 6 |
| 7 #include "media/tools/player_wtl/player_wtl.h" | 7 #include "media/tools/player_wtl/player_wtl.h" |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "media/base/pipeline_impl.h" | 11 #include "media/base/pipeline_impl.h" |
| 12 #include "media/filters/audio_renderer_impl.h" | |
| 13 #include "media/filters/ffmpeg_audio_decoder.h" | 12 #include "media/filters/ffmpeg_audio_decoder.h" |
| 14 #include "media/filters/ffmpeg_demuxer.h" | 13 #include "media/filters/ffmpeg_demuxer.h" |
| 15 #include "media/filters/ffmpeg_video_decoder.h" | 14 #include "media/filters/ffmpeg_video_decoder.h" |
| 16 #include "media/filters/file_data_source.h" | 15 #include "media/filters/file_data_source.h" |
| 17 #include "media/tools/player_wtl/mainfrm.h" | 16 #include "media/tools/player_wtl/mainfrm.h" |
| 18 | 17 |
| 19 // See player_wtl.h to enable timing code by turning on TESTING macro. | 18 // See player_wtl.h to enable timing code by turning on TESTING macro. |
| 20 | 19 |
| 21 namespace switches { | 20 namespace switches { |
| 22 const char kExit[] = "exit"; | 21 const char kExit[] = "exit"; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 double player_time_end = GetTime(); | 83 double player_time_end = GetTime(); |
| 85 char outputbuf[512]; | 84 char outputbuf[512]; |
| 86 _snprintf_s(outputbuf, sizeof(outputbuf), | 85 _snprintf_s(outputbuf, sizeof(outputbuf), |
| 87 "player time %5.2f ms\n", | 86 "player time %5.2f ms\n", |
| 88 player_time_end - player_time_start); | 87 player_time_end - player_time_start); |
| 89 OutputDebugStringA(outputbuf); | 88 OutputDebugStringA(outputbuf); |
| 90 printf("%s", outputbuf); | 89 printf("%s", outputbuf); |
| 91 #endif | 90 #endif |
| 92 return result; | 91 return result; |
| 93 } | 92 } |
| OLD | NEW |