diff options
author | Emil Velikov <[email protected]> | 2014-06-28 15:24:43 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-06-28 15:24:45 +0100 |
commit | 15b5e663b050505683b7b4c9c489e46863b8441d (patch) | |
tree | c272631ed59bf8731558d74d54abf6f4efb13f48 /src | |
parent | f230015206acc460571e3faf52f33111512f9dc6 (diff) |
st/omx: strcpy the string into the allocated buffer
This fixes commit a001ca98e15(st/omx: keep the name,
(name|role)_specific strings dynamically allocated) in which we
dynamically allocated the buffers for name and (name|role)_specific
yet forgot to copy the encoder strings into them.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80614
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/omx/vid_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/omx/vid_enc.c b/src/gallium/state_trackers/omx/vid_enc.c index 871b465f281..83624c53145 100644 --- a/src/gallium/state_trackers/omx/vid_enc.c +++ b/src/gallium/state_trackers/omx/vid_enc.c @@ -125,9 +125,9 @@ OMX_ERRORTYPE vid_enc_LoaderComponent(stLoaderComponentType *comp) if (comp->role_specific[0] == NULL) goto error_specific; - comp->name = OMX_VID_ENC_BASE_NAME; - comp->name_specific[0] = OMX_VID_ENC_AVC_NAME; - comp->role_specific[0] = OMX_VID_ENC_AVC_ROLE; + strcpy(comp->name, OMX_VID_ENC_BASE_NAME); + strcpy(comp->name_specific[0], OMX_VID_ENC_AVC_NAME); + strcpy(comp->role_specific[0], OMX_VID_ENC_AVC_ROLE); return OMX_ErrorNone; |