thank you for your reply
here are the codes of gplay which I modified
void gst_api_test()
{
GstElement* pipeline;
GstElement* photobin;
GstElement* photo_sink;
GError *error;
error = NULL;
gst_init(NULL, NULL);//here i test the gst_init()
printf("gst_api_test S\n");
}
int main(int argc,char *argv[])
{
fsl_player_s8 sCommand[256];
fsl_player_s8 uri_buffer[500];
fsl_player_thread_t display_thread;
fsl_player_thread_t msg_thread;
fsl_player_ret_val ret_val = FSL_PLAYER_SUCCESS;
fsl_player_handle player_handle = NULL;
fsl_player* pplayer = NULL;
fsl_player_drm_format drm_format;
fsl_player_config config;
fsl_player_s32 ret;
fsl_player_s32 volume = 1;
struct sigaction act;
act.sa_handler = signal_handler;
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
sigaction(SIGINT, &act, NULL);
printf("stevesujr gplay test\n");
gst_api_test();//here i test the gst_init()
return 0;