00001
00035 #include <st_static_component_loader.h>
00036 #include <omx_vorbisdec_component.h>
00037
00051 int omx_component_library_Setup(stLoaderComponentType **stComponents) {
00052
00053 DEBUG(DEB_LEV_FUNCTION_NAME, "In %s \n",__func__);
00054 if (stComponents == NULL) {
00055 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
00056 return 1;
00057 }
00058 stComponents[0]->componentVersion.s.nVersionMajor = 1;
00059 stComponents[0]->componentVersion.s.nVersionMinor = 1;
00060 stComponents[0]->componentVersion.s.nRevision = 1;
00061 stComponents[0]->componentVersion.s.nStep = 1;
00062
00063 stComponents[0]->name = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00064 if (stComponents[0]->name == NULL) {
00065 return OMX_ErrorInsufficientResources;
00066 }
00067 strcpy(stComponents[0]->name, "OMX.st.audio_decoder.ogg.single");
00068 stComponents[0]->name_specific_length = 1;
00069 stComponents[0]->constructor = omx_vorbisdec_component_Constructor;
00070
00071 stComponents[0]->name_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
00072 stComponents[0]->role_specific = calloc(stComponents[0]->name_specific_length,sizeof(char *));
00073
00074 stComponents[0]->name_specific[0] = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00075 if (stComponents[0]->name_specific[0] == NULL) {
00076 return OMX_ErrorInsufficientResources;
00077 }
00078 stComponents[0]->role_specific[0] = calloc(1,OMX_MAX_STRINGNAME_SIZE);
00079 if (stComponents[0]->role_specific[0] == NULL) {
00080 return OMX_ErrorInsufficientResources;
00081 }
00082 strcpy(stComponents[0]->name_specific[0], "OMX.st.audio_decoder.ogg.single");
00083 strcpy(stComponents[0]->role_specific[0], "audio_decoder.ogg");
00084
00085 DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s \n",__func__);
00086 return 1;
00087 }