OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <signal.h> | 5 #include <signal.h> |
6 | 6 |
7 #include <iostream> // NOLINT | 7 #include <iostream> // NOLINT |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 base::Bind(&PeriodicalUpdate, | 222 base::Bind(&PeriodicalUpdate, |
223 base::Unretained(pipeline), | 223 base::Unretained(pipeline), |
224 message_loop), | 224 message_loop), |
225 base::TimeDelta::FromMilliseconds(10)); | 225 base::TimeDelta::FromMilliseconds(10)); |
226 } | 226 } |
227 | 227 |
228 int main(int argc, char** argv) { | 228 int main(int argc, char** argv) { |
229 base::AtExitManager at_exit; | 229 base::AtExitManager at_exit; |
230 media::InitializeMediaLibraryForTesting(); | 230 media::InitializeMediaLibraryForTesting(); |
231 | 231 |
232 CommandLine::Init(argc, argv); | 232 base::CommandLine::Init(argc, argv); |
233 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 233 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
234 std::string filename = command_line->GetSwitchValueASCII("file"); | 234 std::string filename = command_line->GetSwitchValueASCII("file"); |
235 | 235 |
236 if (filename.empty()) { | 236 if (filename.empty()) { |
237 std::cout << "Usage: " << argv[0] << " --file=FILE" << std::endl | 237 std::cout << "Usage: " << argv[0] << " --file=FILE" << std::endl |
238 << std::endl | 238 << std::endl |
239 << "Optional arguments:" << std::endl | 239 << "Optional arguments:" << std::endl |
240 << " [--audio]" | 240 << " [--audio]" |
241 << " [--alsa-device=DEVICE]" | 241 << " [--alsa-device=DEVICE]" |
242 << " [--use-gl]" | 242 << " [--use-gl]" |
243 << " [--streaming]" << std::endl | 243 << " [--streaming]" << std::endl |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // Release callback which releases video renderer. Do this before cleaning up | 301 // Release callback which releases video renderer. Do this before cleaning up |
302 // X below since the video renderer has some X cleanup duties as well. | 302 // X below since the video renderer has some X cleanup duties as well. |
303 paint_cb.Reset(); | 303 paint_cb.Reset(); |
304 | 304 |
305 XDestroyWindow(g_display, g_window); | 305 XDestroyWindow(g_display, g_window); |
306 XCloseDisplay(g_display); | 306 XCloseDisplay(g_display); |
307 g_audio_manager = NULL; | 307 g_audio_manager = NULL; |
308 | 308 |
309 return 0; | 309 return 0; |
310 } | 310 } |
OLD | NEW |