indent fix

This commit is contained in:
Erik Zandvliet 2013-02-04 12:17:41 +01:00 committed by Thulinma
parent 562386fef7
commit 2ab4204e71

View file

@ -4,6 +4,7 @@
#include <string>
#include <mist/json.h>
#include <mist/dtsc.h>
#include <mist/procs.h>
namespace Info {
@ -12,7 +13,9 @@ namespace Info {
fprintf( stderr, "Usage: %s <filename>\n", argv[0] );
return 1;
}
JSON::Value fileSpecs;
DTSC::File F(argv[1]);
JSON::Value fileSpecs = F.getMeta();
if( !fileSpecs ) {
std::vector<std::string> cmd;
cmd.push_back("ffprobe");
cmd.push_back(argv[1]);
@ -90,7 +93,16 @@ namespace Info {
}
}
fclose( outFile );
printf( "%s\n", fileSpecs.toPrettyString().c_str() );
}
if (fileSpecs.isMember("video")){
fileSpecs["video"].removeMember("init");
}
if (fileSpecs.isMember("audio")){
fileSpecs["audio"].removeMember("init");
}
fileSpecs.removeMember("keybpos");
fileSpecs.removeMember("keytime");
printf( "%s", fileSpecs.toString().c_str() );
return 0;
}
}