[vlc-commits] omxil: Avoid warnings about implicitly casting a const char* to OMX_STRING

Martin Storsjö git at videolan.org
Thu Sep 29 11:56:59 CEST 2011


vlc | branch: master | Martin Storsjö <martin at martin.st> | Thu Sep 29 11:33:42 2011 +0300| [acae658cb69c2b42e9848dd00103c07e27b12e3d] | committer: Jean-Baptiste Kempf

omxil: Avoid warnings about implicitly casting a const char* to OMX_STRING

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=acae658cb69c2b42e9848dd00103c07e27b12e3d
---

 modules/codec/omxil/omxil.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index f636493..a032850 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -649,7 +649,7 @@ static OMX_ERRORTYPE InitialiseComponent(decoder_t *p_dec,
     if(!strncmp(p_sys->psz_component, "OMX.SEC.", 8))
     {
         OMX_INDEXTYPE index;
-        omx_error = OMX_GetExtensionIndex(omx_handle, "OMX.SEC.index.ThumbnailMode", &index);
+        omx_error = OMX_GetExtensionIndex(omx_handle, (OMX_STRING) "OMX.SEC.index.ThumbnailMode", &index);
         if(omx_error == OMX_ErrorNone)
         {
             OMX_BOOL enable = OMX_TRUE;



More information about the vlc-commits mailing list