diff src/flac113/tag.c @ 523:221086196f89 trunk

[svn] - flac 113 plugin: do not try to pick tuple from file if file is not accessible via stdio (and stop crashing when such attempts are done); TODO: pick tags from flac via vfs
author giacomo
date Mon, 22 Jan 2007 13:30:28 -0800
parents 117bc56d906b
children
line wrap: on
line diff
--- a/src/flac113/tag.c	Mon Jan 22 12:32:00 2007 -0800
+++ b/src/flac113/tag.c	Mon Jan 22 13:30:28 2007 -0800
@@ -91,7 +91,14 @@
 	FLAC__StreamMetadata *tags;
 	FLAC__StreamMetadata info;
 	char *title, *artist, *performer, *album, *date, *tracknumber, *genre, *description;
-	gchar *filename_proxy = g_strdup(filename);
+	gchar *filename_proxy;
+
+	/* NOTE vfs is not yet used here, so only try
+	   to pick tags if you can do it with flac library stdio */
+	if ( strncmp(filename,"/",1) )
+		return NULL;
+
+	filename_proxy = g_strdup(filename);
 
 	FLAC_plugin__tags_get(filename_proxy, &tags);