Mercurial > audlegacy-plugins
comparison src/demac/plugin.c @ 2261:05c9bec29aaa
- Prevent APE plugin from freaking out non-seekable streams
| author | Ralf Ertzinger <ralf@skytale.net> |
|---|---|
| date | Sat, 22 Dec 2007 21:19:18 +0100 |
| parents | 8b3c2fe608c9 |
| children | 699b5e756bc4 |
comparison
equal
deleted
inserted
replaced
| 2260:b71d8bee8882 | 2261:05c9bec29aaa |
|---|---|
| 303 fprintf(stderr, "** demac: plugin.c: demac_probe_for_tuple()\n"); | 303 fprintf(stderr, "** demac: plugin.c: demac_probe_for_tuple()\n"); |
| 304 #endif | 304 #endif |
| 305 Tuple *tpl = aud_tuple_new_from_filename(uri); | 305 Tuple *tpl = aud_tuple_new_from_filename(uri); |
| 306 gchar codec_string[32]; | 306 gchar codec_string[32]; |
| 307 | 307 |
| 308 if (aud_vfs_is_streaming(vfd)) { | |
| 309 /* This plugin does not support streams yet */ | |
| 310 return NULL; | |
| 311 } | |
| 312 | |
| 308 mowgli_dictionary_t *tag = NULL; | 313 mowgli_dictionary_t *tag = NULL; |
| 309 gchar *item; | 314 gchar *item; |
| 310 if ((tag = parse_apev2_tag(vfd)) != NULL) { | 315 if ((tag = parse_apev2_tag(vfd)) != NULL) { |
| 311 if((item = mowgli_dictionary_retrieve(tag, "Artist")) != NULL) aud_tuple_associate_string(tpl, FIELD_ARTIST, NULL, item); | 316 if((item = mowgli_dictionary_retrieve(tag, "Artist")) != NULL) aud_tuple_associate_string(tpl, FIELD_ARTIST, NULL, item); |
| 312 if((item = mowgli_dictionary_retrieve(tag, "Title")) != NULL) aud_tuple_associate_string(tpl, FIELD_TITLE, NULL, item); | 317 if((item = mowgli_dictionary_retrieve(tag, "Title")) != NULL) aud_tuple_associate_string(tpl, FIELD_TITLE, NULL, item); |
