mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-30 08:51:11 +02:00
armbox eplayer: add metadata
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user