LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-04-2006, 02:10 AM   #1
bendeco13
Member
 
Registered: Oct 2004
Distribution: Fedora 7
Posts: 232

Rep: Reputation: 30
id3lib Strip?


I wrote a c++ function that I am attempting to use in my program. This function is supposed to remove ALL of the tags (v1, v2, lyrics, etc.) from a specified mp3 file.
Here's the code:
Code:
#include <iostream>
#include <unistd.h>
#include <string>
#include <id3/tag.h>

using namespace std;

void rm_all_tags(string filename)
{
    if (access(filename.c_str(), F_OK) != 0) {
        cout << "Could not open the file:\n" << filename << endl;
    }
    else {
        ID3_Tag currentTag(filename.c_str());
        currentTag.Strip(ID3TT_ALL);
        currentTag.Update();
    }
}
This compiles fine, but the tags AREN'T removed when this function is used.
I just tried it on the latest version of id3lib and it was unsuccessful.
Does anyone know what the problem could be?

Thanks In Advance,
Bendeco
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling grip with id3lib for id3v2 support xBillyGoatx Linux - Software 1 12-02-2006 06:34 PM
C++ Segmentation Fault id3lib bendeco13 Programming 3 10-26-2005 08:05 PM
Yammi and id3lib problem Tsoots Linux - Software 1 03-13-2004 06:35 AM
configuring gtkpod id3lib error RinGz Linux - Software 1 12-28-2003 03:08 PM
id3lib errors jpc82 Programming 1 10-06-2003 06:51 PM


All times are GMT -5. The time now is 01:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration