summaryrefslogtreecommitdiff
path: root/streamer.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-01-31 22:20:57 +0100
committerGravatar waker <wakeroid@gmail.com>2011-01-31 22:20:57 +0100
commit0af105f3e8deb6aba0297f6b51b2d1c57a52d2a8 (patch)
treeee0c1ade8a2fd41f92bdff96fd5cf82088ea32be /streamer.c
parentfec8a409dc51f5bab8ad7af03bb740425e3fca9f (diff)
improved/finalized new vfs scandir API
Diffstat (limited to 'streamer.c')
-rw-r--r--streamer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/streamer.c b/streamer.c
index 8425fce8..8c4566dc 100644
--- a/streamer.c
+++ b/streamer.c
@@ -602,7 +602,7 @@ streamer_set_current (playItem_t *it) {
DB_FILE *fp = streamer_file = vfs_fopen (it->fname);
mutex_unlock (decodemutex);
const char *plug = NULL;
- if (fp) {
+ if (fp && vfs_get_content_type) {
const char *ct = vfs_get_content_type (fp);
if (ct) {
trace ("got content-type: %s\n", ct);