armbox eplayer: add metadata

This commit is contained in:
TangoCash
2017-12-20 21:05:35 +01:00
committed by Thilo Graf
parent 6bc9d6a949
commit e5a50e7126
4 changed files with 85 additions and 2 deletions

View File

@@ -583,6 +583,17 @@ static int32_t PlaybackInfo(Context_t *context, char **infoString)
return ret;
}
static int PlaybackMetadata(Context_t * context, char ***metadata)
{
int ret = cERR_PLAYBACK_NO_ERROR;
if (context->container && context->container->selectedContainer)
context->container->selectedContainer->Command(context,
CONTAINER_GET_METADATA,
metadata);
return ret;
}
static int32_t Command(void *_context, PlaybackCmd_t command, void *argument)
{
Context_t *context = (Context_t *) _context; /* to satisfy compiler */
@@ -665,6 +676,11 @@ static int32_t Command(void *_context, PlaybackCmd_t command, void *argument)
ret = PlaybackGetFrameCount(context, (uint64_t *)argument);
break;
}
case PLAYBACK_METADATA:
{
ret = PlaybackMetadata(context, (char ***) argument);
break;
}
default:
playback_err("PlaybackCmd %d not supported!\n", command);
ret = cERR_PLAYBACK_ERROR;