Commit 5004dc0c authored by Martin Storsjö's avatar Martin Storsjö

omxil: Hardcode known roles for OMX broadcom components on raspberry pi

This OMX core does not list any roles for the components.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 2adf2e0d
...@@ -212,6 +212,18 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role, ...@@ -212,6 +212,18 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
msg_Dbg(p_this, "component %s", psz_name); msg_Dbg(p_this, "component %s", psz_name);
#ifdef RPI_OMX
if (!strcmp(psz_name, "OMX.broadcom.video_decode")) {
if (!strcmp(psz_role, "video_decoder.avc")) {
goto found;
}
} else if (!strcmp(psz_name, "OMX.broadcom.video_render")) {
if (!strcmp(psz_role, "iv_renderer")) {
goto found;
}
}
#endif
omx_error = pf_get_roles_of_component(psz_name, &roles, 0); omx_error = pf_get_roles_of_component(psz_name, &roles, 0);
if(omx_error != OMX_ErrorNone || !roles) continue; if(omx_error != OMX_ErrorNone || !roles) continue;
...@@ -235,6 +247,7 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role, ...@@ -235,6 +247,7 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
if(!b_found) continue; if(!b_found) continue;
found:
if(components >= MAX_COMPONENTS_LIST_SIZE) if(components >= MAX_COMPONENTS_LIST_SIZE)
{ {
msg_Dbg(p_this, "too many matching components"); msg_Dbg(p_this, "too many matching components");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment