Lines Matching refs:mloader

914     media_loader_t *mloader;  in player_task()  local
939 mloader = player->mloader; in player_task()
940 if (!mloader) { in player_task()
946 if (mloader->action(mloader, PLAYER_START, NULL)) { in player_task()
965 mloader->action(mloader, PLAYER_STOP, NULL); in player_task()
979 mloader->buffer_dirty_size = 0; in player_task()
1023 if (mloader->action(mloader, PLAYER_PAUSE, NULL)) { in player_task()
1126 if (mloader->action(mloader, PLAYER_RESUME, NULL)) { in player_task()
1189 mloader->action(mloader, PLAYER_STOP, NULL); in player_task()
1190 mloader->buffer_dirty_size = 0; in player_task()
1241 mloader->action(mloader, PLAYER_STOP, NULL); in player_task()
1242 snd_free(mloader->buffer); in player_task()
1243 media_loader_release(mloader); in player_task()
1245 player->mloader = NULL; in player_task()
1282 mloader->action(mloader, PLAYER_COMPLETE, NULL); in player_task()
1283 mloader->buffer_dirty_size = 0; in player_task()
1290 if (mloader->buffer) in player_task()
1291 snd_free(mloader->buffer); in player_task()
1292 media_loader_release(mloader); in player_task()
1294 player->mloader = NULL; in player_task()
1310 if (mloader != player->mloader) { in player_task()
1311 mloader = player->mloader; in player_task()
1321 if (mloader->action(mloader, PLAYER_START, NULL)) { in player_task()
1335 mloader->action(mloader, PLAYER_STOP, NULL); in player_task()
1375 mloader->action(mloader, PLAYER_SEEK, in player_task()
1381 mloader->action(mloader, PLAYER_SEEK, in player_task()
1398 ret = mloader->read(mloader, in player_task()
1399 mloader->buffer + mloader->buffer_dirty_size, in player_task()
1400 mloader->buffer_size - mloader->buffer_dirty_size); in player_task()
1410 mloader->action(mloader, PLAYER_RELOAD, (void *)mdecoder->rebase_offset); in player_task()
1412 mloader->buffer_dirty_size = 0; in player_task()
1427 if (mloader->buffer_dirty_size < mloader->buffer_size) { in player_task()
1439 mloader->buffer_size - mloader->buffer_dirty_size) { in player_task()
1441 mloader->buffer_size - mloader->buffer_dirty_size, ret); in player_task()
1443 mloader->buffer_dirty_size += ret; in player_task()
1454 mloader->buffer, mloader->buffer_dirty_size)) { in player_task()
1463 player->consumed_len += mloader->buffer_dirty_size - in player_task()
1466 if (mdecoder->unproc_size >= mloader->buffer_dirty_size) { in player_task()
1472 snd_memmove(mloader->buffer, in player_task()
1473 mloader->buffer + in player_task()
1474 mloader->buffer_dirty_size - mdecoder->unproc_size, in player_task()
1476 mloader->buffer_dirty_size = mdecoder->unproc_size; in player_task()
1479 mloader->buffer_dirty_size = 0; in player_task()
1580 if (player->mloader->action(player->mloader, in player_start()
1596 player->mloader->action(player->mloader, PLAYER_STOP, NULL); in player_start()
1668 player->mloader->action(player->mloader, in player_complete()
1764 player->mloader->action(player->mloader, in player_pause()
1895 player->mloader->action(player->mloader, in player_stop()
1954 player->mloader->action(player->mloader, in player_pause_async()
2020 player->mloader->action(player->mloader, in player_stop_async()
2495 if (player->mloader) { in player_set_source()
2498 player->mloader->buffer_size); in player_set_source()
2499 snd_free(player->mloader->buffer); in player_set_source()
2500 media_loader_release(player->mloader); in player_set_source()
2501 player->mloader = NULL; in player_set_source()
2511 if (!player->mloader) { in player_set_source()
2512 player->mloader = media_loader_create(player->type, source); in player_set_source()
2513 if (!player->mloader) { in player_set_source()
2520 player->mloader->message = player_message_handle; in player_set_source()
2521 player->mloader->priv = player; in player_set_source()
2523 media_loader_reset(player->mloader); in player_set_source()
2524 if (player->mloader->action(player->mloader, in player_set_source()
2536 if (player->mloader->get_format(player->mloader, in player_set_source()
2589 if (!player->mloader->buffer || in player_set_source()
2590 player->mloader->buffer_size != player->mdecoder->input_size) { in player_set_source()
2591 if (player->mloader->buffer) { in player_set_source()
2593 player->mloader->buffer_size); in player_set_source()
2594 snd_free(player->mloader->buffer); in player_set_source()
2597 player->mloader->buffer_size = player->mdecoder->input_size; in player_set_source()
2598 player->mloader->buffer = snd_zalloc( in player_set_source()
2599 player->mloader->buffer_size, AFM_MAIN); in player_set_source()
2600 if (!player->mloader->buffer) { in player_set_source()
2610 if (!player->mloader->buffer) { in player_set_source()
2613 player->mloader->buffer_size = player->mdecoder->input_size; in player_set_source()
2614 player->mloader->buffer = snd_zalloc( in player_set_source()
2615 player->mloader->buffer_size, AFM_MAIN); in player_set_source()
2616 if (!player->mloader->buffer) { in player_set_source()
2643 player->mloader->get_mediainfo(player->mloader, in player_set_source()
2663 snd_free(player->mloader->buffer); in player_set_source()
2668 media_loader_release(player->mloader); in player_set_source()
2669 player->mloader = NULL; in player_set_source()
2717 if (player->mloader) { in player_clr_source()
2718 if (player->mloader->buffer) in player_clr_source()
2719 snd_free(player->mloader->buffer); in player_clr_source()
2720 media_loader_release(player->mloader); in player_clr_source()
2721 player->mloader = NULL; in player_clr_source()
3225 if (!player->mloader) { in player_get_mediainfo()
3229 player->mloader->get_mediainfo(player->mloader, in player_get_mediainfo()
3241 media_loader_t *mloader; in player_get_cacheinfo() local
3257 mloader = player->mloader; in player_get_cacheinfo()
3258 if (!mloader) { in player_get_cacheinfo()
3265 if (mloader->get_cacheinfo && in player_get_cacheinfo()
3266 mloader->get_cacheinfo(mloader, &cache_info)) { in player_get_cacheinfo()
3514 media_loader_t *mloader; in player_seek() local
3574 mloader = player->mloader; in player_seek()
3575 if (!mloader) { in player_seek()
3595 if (!mloader->get_cacheinfo) { in player_seek()
3616 if (mloader->get_cacheinfo(mloader, &cache_info)) { in player_seek()
3649 mloader->action(mloader, in player_seek()
3652 mloader->action(mloader, in player_seek()
3655 mloader->action(mloader, in player_seek()
3658 mloader->action(mloader, in player_seek()
3752 M_LOGI("mloader 0x%x\n", (uint32_t)player->mloader); in player_state_dump()
3797 media_loader_t *mloader; in player_download() local
3811 mloader = player->mloader; in player_download()
3812 if (!mloader) { in player_download()
3818 if (mloader->action(mloader, PLAYER_DLOAD, name)) { in player_download()
3831 media_loader_t *mloader; in player_download_abort() local
3845 mloader = player->mloader; in player_download_abort()
3846 if (!mloader) { in player_download_abort()
3854 if (mloader->action(mloader, PLAYER_DLOAD_ABORT, NULL)) { in player_download_abort()