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

Unified Diff: examples/media_test/media_test_app.cc

Issue 1833323002: Motown: Add ActiveMultistreamSource model in preparation for the ffmpeg demux with async I/O (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: dalesat 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | services/media/framework/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/media_test/media_test_app.cc
diff --git a/examples/media_test/media_test_app.cc b/examples/media_test/media_test_app.cc
index 5db27714ec6cf0fd2c1b9e97302285965cab274d..c3d91ac05bf8b4628ebf56e09d53a08025298fec 100644
--- a/examples/media_test/media_test_app.cc
+++ b/examples/media_test/media_test_app.cc
@@ -62,8 +62,6 @@ class MediaTestApp : public mojo::ApplicationDelegate {
std::cout << " genre <none>" << std::endl;
std::cout << " composer <none>" << std::endl << std::endl;
std::cout << std::endl << std::endl << kUp << std::flush;
- } else {
- std::cout << std::endl;
}
CreateNewMediaTest();
@@ -136,7 +134,7 @@ class MediaTestApp : public mojo::ApplicationDelegate {
// Do nothing.
} else if (metadata) {
metadata_shown_ = true;
- std::cout << " duration " << std::setprecision(1)
+ std::cout << " duration " << std::fixed << std::setprecision(1)
<< double(metadata->duration) / ns_per_second << " seconds"
<< clear_line() << std::endl;
std::cout << " title "
@@ -158,7 +156,7 @@ class MediaTestApp : public mojo::ApplicationDelegate {
<< (metadata->composer ? metadata->composer : "<none>")
<< clear_line() << std::endl
<< std::endl;
- } else {
+ } else if (paint_) {
std::cout << " duration <none>" << kClearLine << std::endl;
std::cout << " title <none>" << kClearLine << std::endl;
std::cout << " artist <none>" << kClearLine << std::endl;
« no previous file with comments | « no previous file | services/media/framework/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698