[vlc-commits] omxil: Hardcode known roles for OMX broadcom components on raspberry pi
Martin Storsjö
git at videolan.org
Mon Mar 18 17:41:15 CET 2013
vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 11 16:52:11 2013 +0200| [5004dc0c048e33052c3643d160afec4f99c242be] | committer: 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: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5004dc0c048e33052c3643d160afec4f99c242be
---
modules/codec/omxil/omxil_core.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/modules/codec/omxil/omxil_core.c b/modules/codec/omxil/omxil_core.c
index 976b53c..66c1aab 100644
--- a/modules/codec/omxil/omxil_core.c
+++ b/modules/codec/omxil/omxil_core.c
@@ -212,6 +212,18 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
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);
if(omx_error != OMX_ErrorNone || !roles) continue;
@@ -235,6 +247,7 @@ int CreateComponentsList(vlc_object_t *p_this, const char *psz_role,
if(!b_found) continue;
+found:
if(components >= MAX_COMPONENTS_LIST_SIZE)
{
msg_Dbg(p_this, "too many matching components");
More information about the vlc-commits
mailing list