mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-30 08:50:56 +02:00
armbox eplayer: add metadata
Origin commit data
------------------
Branch: master
Commit: 12daaec555
Author: TangoCash <eric@loxat.de>
Date: 2017-12-20 (Wed, 20 Dec 2017)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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