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:
TangoCash
2017-12-20 21:05:35 +01:00
parent f1b43646d1
commit a15697c888
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;