Lines Matching refs:mloader

23 int media_loader_reset(media_loader_t *mloader)  in media_loader_reset()  argument
25 if (!mloader) { in media_loader_reset()
30 if (mloader->reset && mloader->reset(mloader)) { in media_loader_reset()
40 media_loader_t *mloader; in media_loader_create() local
47 mloader = snd_zalloc(sizeof(media_loader_t), AFM_EXTN); in media_loader_create()
48 if (!mloader) { in media_loader_create()
55 if (http_loader_create(mloader, source)) { in media_loader_create()
57 snd_free(mloader); in media_loader_create()
62 snd_free(mloader); in media_loader_create()
67 if (file_loader_create(mloader, source)) { in media_loader_create()
69 snd_free(mloader); in media_loader_create()
74 snd_free(mloader); in media_loader_create()
79 if (partition_loader_create(mloader, source)) { in media_loader_create()
81 snd_free(mloader); in media_loader_create()
86 snd_free(mloader); in media_loader_create()
91 snd_free(mloader); in media_loader_create()
95 mloader->type = type; in media_loader_create()
96 return mloader; in media_loader_create()
99 int media_loader_release(media_loader_t *mloader) in media_loader_release() argument
101 if (!mloader) { in media_loader_release()
106 if (mloader->type == MEDIA_TYPE_HTTP) { in media_loader_release()
108 http_loader_release(mloader); in media_loader_release()
110 } else if (mloader->type == MEDIA_TYPE_FILE) { in media_loader_release()
112 file_loader_release(mloader); in media_loader_release()
114 } else if (mloader->type == MEDIA_TYPE_FLASH) { in media_loader_release()
116 partition_loader_release(mloader); in media_loader_release()
120 snd_free(mloader); in media_loader_release()