diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/servicemp3.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/service/servicemp3.cpp b/lib/service/servicemp3.cpp index 2fa53ee7..bd92cf20 100644 --- a/lib/service/servicemp3.cpp +++ b/lib/service/servicemp3.cpp @@ -495,7 +495,10 @@ RESULT eServiceMP3::info(ePtr<iServiceInformation>&i) RESULT eServiceMP3::getName(std::string &name) { - name = "MP3 File: " + m_filename; + name = m_filename; + int n = name.rfind('/'); + if (n != std::string::npos) + name = name.substr(n + 1); return 0; } |
