LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   id3lib Strip? (https://www.linuxquestions.org/questions/programming-9/id3lib-strip-431567/)

bendeco13 04-04-2006 02:10 AM

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


All times are GMT -5. The time now is 12:22 PM.