Commit 13618e09 authored by Martin Storsjö's avatar Martin Storsjö

omxil: Use the role names video_decoder.wmv1/2

The role name without a suffix, "video_decoder.wmv", is only for
vc1/wmv3/9 (on Samsung Galaxy S III at least). Since certain roles
are substrings of others, require the full string to match when looking
for suitable codecs instead of using strncmp.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 4a19daba
...@@ -169,7 +169,7 @@ static int CreateComponentsList(decoder_t *p_dec, const char *psz_role) ...@@ -169,7 +169,7 @@ static int CreateComponentsList(decoder_t *p_dec, const char *psz_role)
for(j = 0; j < roles; j++) for(j = 0; j < roles; j++)
{ {
msg_Dbg(p_dec, " - role: %s", ppsz_roles[j]); msg_Dbg(p_dec, " - role: %s", ppsz_roles[j]);
if(!strncmp((char *)ppsz_roles[j], psz_role, len)) b_found = true; if(!strcmp((char *)ppsz_roles[j], psz_role)) b_found = true;
} }
free(ppsz_roles); free(ppsz_roles);
......
...@@ -303,8 +303,8 @@ static const struct ...@@ -303,8 +303,8 @@ static const struct
{ VLC_CODEC_MP4V, OMX_VIDEO_CodingMPEG4, "video_decoder.mpeg4" }, { VLC_CODEC_MP4V, OMX_VIDEO_CodingMPEG4, "video_decoder.mpeg4" },
{ VLC_CODEC_H264, OMX_VIDEO_CodingAVC, "video_decoder.avc" }, { VLC_CODEC_H264, OMX_VIDEO_CodingAVC, "video_decoder.avc" },
{ VLC_CODEC_H263, OMX_VIDEO_CodingH263, "video_decoder.h263" }, { VLC_CODEC_H263, OMX_VIDEO_CodingH263, "video_decoder.h263" },
{ VLC_CODEC_WMV1, OMX_VIDEO_CodingWMV, "video_decoder.wmv" }, { VLC_CODEC_WMV1, OMX_VIDEO_CodingWMV, "video_decoder.wmv1" },
{ VLC_CODEC_WMV2, OMX_VIDEO_CodingWMV, "video_decoder.wmv" }, { VLC_CODEC_WMV2, OMX_VIDEO_CodingWMV, "video_decoder.wmv2" },
{ VLC_CODEC_WMV3, OMX_VIDEO_CodingWMV, "video_decoder.wmv" }, { VLC_CODEC_WMV3, OMX_VIDEO_CodingWMV, "video_decoder.wmv" },
{ VLC_CODEC_VC1, OMX_VIDEO_CodingWMV, "video_decoder.wmv" }, { VLC_CODEC_VC1, OMX_VIDEO_CodingWMV, "video_decoder.wmv" },
{ VLC_CODEC_MJPG, OMX_VIDEO_CodingMJPEG, "video_decoder.jpeg" }, { VLC_CODEC_MJPG, OMX_VIDEO_CodingMJPEG, "video_decoder.jpeg" },
......
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