summaryrefslogtreecommitdiff
path: root/muggle-plugin/mg_sync.c
diff options
context:
space:
mode:
authorwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-09 08:49:38 +0000
committerwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-03-09 08:49:38 +0000
commit7ab8614b6345720213ee2cd75d5f506c04c1b551 (patch)
treef9cd1a61ff42d8978b8215714d6c944a8bdaa2cf /muggle-plugin/mg_sync.c
parent75e8aec5ba90a968b1ef607c83e7ae05e7924f1b (diff)
downloadvdr-plugin-muggle-7ab8614b6345720213ee2cd75d5f506c04c1b551.tar.gz
vdr-plugin-muggle-7ab8614b6345720213ee2cd75d5f506c04c1b551.tar.bz2
fix genre import
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/branches/0.1.4-wr@557 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'muggle-plugin/mg_sync.c')
-rw-r--r--muggle-plugin/mg_sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/muggle-plugin/mg_sync.c b/muggle-plugin/mg_sync.c
index a45f2fa..dff458f 100644
--- a/muggle-plugin/mg_sync.c
+++ b/muggle-plugin/mg_sync.c
@@ -209,7 +209,8 @@ mgSync::GetFileInfo(const char *filename)
*slash='\'';
*(slash+1)=0;
}
- const char *genrename=tag->genre().toCString();
+ TagLib::String sgenre1=tag->genre();
+ const char *genrename=sgenre1.toCString();
const char *genreid=m_Genres[genrename].c_str();
sql_Cstring(genreid,c_genre1);
sql_Cstring(getlanguage(filename),c_lang);