Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 251255
Collapse All | Expand All

(-)splay-0.9.5.2.orig/apps/splay.cc (-8 / +8 lines)
Lines 150-165 ostream& operator<<(ostream& s, const ID Link Here
150
  // Print just what we want...
150
  // Print just what we want...
151
  s.setf(ios::left);  // The filled fields get the text to the left
151
  s.setf(ios::left);  // The filled fields get the text to the left
152
  s << 
152
  s << 
153
    "Title : " << nn(ID3_GetTitle(tag)) << endl;
153
    "Title : " << nn(ID3_GetTitle(tag)) << std::endl;
154
  s << 
154
  s << 
155
    "Artist: " << setw(30) << nn(ID3_GetArtist(tag)) << 
155
    "Artist: " << std::setw(30) << nn(ID3_GetArtist(tag)) << 
156
    "Album: " << nn(ID3_GetAlbum(tag)) << 
156
    "Album: " << nn(ID3_GetAlbum(tag)) << 
157
    endl ; 
157
    std::endl ; 
158
  
158
  
159
  s << 
159
  s << 
160
    "Genre : " << setw(18) << nn(ID3_gen_list[ID3_GetGenreNum(tag)]) << 
160
    "Genre : " << std::setw(18) << nn(ID3_gen_list[ID3_GetGenreNum(tag)]) << 
161
    "Track: " << setw(5) << ID3_GetTrackNum(tag) << 
161
    "Track: " << std::setw(5) << ID3_GetTrackNum(tag) << 
162
    "Year: " <<  setw(6) << nn(ID3_GetYear(tag)); 
162
    "Year: " <<  std::setw(6) << nn(ID3_GetYear(tag)); 
163
//   if ( ID3_GetComment(tag) ){
163
//   if ( ID3_GetComment(tag) ){
164
//     s << endl << "Comment:" << nn(ID3_GetComment(tag)) <<
164
//     s << endl << "Comment:" << nn(ID3_GetComment(tag)) <<
165
//       nn(ID3_GetLyricist(tag)) << nn(ID3_GetLyrics(tag));
165
//       nn(ID3_GetLyricist(tag)) << nn(ID3_GetLyrics(tag));
Lines 180-192 static void play(char *filename) Link Here
180
      try {
180
      try {
181
	const ID3_Tag*  mytag = new ID3_Tag(filename);
181
	const ID3_Tag*  mytag = new ID3_Tag(filename);
182
	if ( mytag->HasV1Tag() || mytag->HasV2Tag()  )
182
	if ( mytag->HasV1Tag() || mytag->HasV2Tag()  )
183
	  cout << mytag << endl;
183
	  std::cout << mytag << std::endl;
184
	delete mytag;
184
	delete mytag;
185
	
185
	
186
      }
186
      }
187
//      catch(ID3_Error &err){
187
//      catch(ID3_Error &err){
188
      catch(...){
188
      catch(...){
189
	cout << "Error found (GetError functions disabled)" << endl;
189
	std::cout << "Error found (GetError functions disabled)" << std::endl;
190
//	cout << err.GetErrorFile() << " (" << err.GetErrorLine() << "): "
190
//	cout << err.GetErrorFile() << " (" << err.GetErrorLine() << "): "
191
//	     << err.GetErrorType() << ": " << err.GetErrorDesc() << endl;
191
//	     << err.GetErrorType() << ": " << err.GetErrorDesc() << endl;
192
      }
192
      }

Return to bug 251255