Skip to content

Commit 112c738

Browse files
author
Clement Champetier
committed
Metadatas Print: clean newlines
Easier to parse.
1 parent fc1ff82 commit 112c738

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/avMeta/avMeta.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ int main( int argc, char** argv )
1717
input.analyse( p, avtranscoder::InputFile::eAnalyseLevelFull );
1818

1919
// a simply metadata display
20-
std::cout << input << std::endl;
20+
std::cout << input;
2121
}

src/AvTranscoder/Metadatas/Print.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,42 +111,42 @@ std::ostream& operator<<( std::ostream& flux, const UnknownProperties& unknownPr
111111
std::ostream& operator<<( std::ostream& flux, const InputFile& input )
112112
{
113113
// wrapper
114-
flux << input.getProperties() << std::endl;
114+
flux << input.getProperties();
115115

116116
// video streams
117117
for( size_t videoStreamIndex = 0; videoStreamIndex < input.getProperties().videoStreams.size(); ++videoStreamIndex )
118118
{
119-
flux << input.getProperties().videoStreams.at( videoStreamIndex ) << std::endl;
119+
flux << input.getProperties().videoStreams.at( videoStreamIndex );
120120
}
121121

122122
// audio streams
123123
for( size_t audioStreamIndex = 0; audioStreamIndex < input.getProperties().audioStreams.size(); ++audioStreamIndex )
124124
{
125-
flux << input.getProperties().audioStreams.at( audioStreamIndex ) << std::endl;
125+
flux << input.getProperties().audioStreams.at( audioStreamIndex );
126126
}
127127

128128
// data streams
129129
for( size_t dataStreamIndex = 0; dataStreamIndex < input.getProperties().dataStreams.size(); ++dataStreamIndex )
130130
{
131-
flux << input.getProperties().dataStreams.at( dataStreamIndex ) << std::endl;
131+
flux << input.getProperties().dataStreams.at( dataStreamIndex );
132132
}
133133

134134
// subtitle streams
135135
for( size_t subtitleStreamIndex = 0; subtitleStreamIndex < input.getProperties().subtitleStreams.size(); ++subtitleStreamIndex )
136136
{
137-
flux << input.getProperties().subtitleStreams.at( subtitleStreamIndex ) << std::endl;
137+
flux << input.getProperties().subtitleStreams.at( subtitleStreamIndex );
138138
}
139139

140140
// attachement streams
141141
for( size_t attachementStreamIndex = 0; attachementStreamIndex < input.getProperties().attachementStreams.size(); ++attachementStreamIndex )
142142
{
143-
flux << input.getProperties().attachementStreams.at( attachementStreamIndex ) << std::endl;
143+
flux << input.getProperties().attachementStreams.at( attachementStreamIndex );
144144
}
145145

146146
// unknown streams
147147
for( size_t unknownStreamIndex = 0; unknownStreamIndex < input.getProperties().unknownStreams.size(); ++unknownStreamIndex )
148148
{
149-
flux << input.getProperties().unknownStreams.at( unknownStreamIndex ) << std::endl;
149+
flux << input.getProperties().unknownStreams.at( unknownStreamIndex );
150150
}
151151

152152
return flux;

0 commit comments

Comments
 (0)