0
GST 1.11로 유령 패드 요소를 얻을 수있는 올바른 방법,gstreamer를 이름
나는 그러나를 사용하여 요소를 얻으려고 다음
gchar *ghost_pad_1_name = NULL;
ghost_pad_1_name = "myGhostPad'
ghost_pad_1 = gst_ghost_pad_new (ghost_pad_1_name, pad_src_1);
if(GST_PAD_DIRECTION(ghost_pad_1) == GST_PAD_SRC){
printf("Ghost is SRC -> correct\n"); // Correct
}
printf("Ghost Pad Name = %s\n",GST_ELEMENT_NAME(ghost_pad_1)); // myGhostPad
에 의해 작동하고 유령 패드를 생성 및 확인했다 다음은 NULL을 반환합니다.
GstElement *TestGhostPad = gst_bin_get_by_name (ghost_pad_1_name);
if (!TestGhostPad){
printf("Ghost Pad is NULL\n"); // This is called
}
if (TestGhostPad){
printf("Ghost Pad is NOT NULL\n");
}
이 함수를 올바르게 사용하고 있습니까? 유령 패드를 얻는 또 다른 방법이 있습니까 name
.
덕분에