g_print("pipeline create fail\n");
return FALSE;
}
- if (mode == MODE_LIVE_BUFFER_NV12_VIDEO_SW) {
- vsrc = gst_element_factory_make("videotestsrc", NULL);
- if (!vsrc) {
- g_print("src element creation failed\n");
- return FALSE;
- }
- } else {
- vsrc = gst_element_factory_make("videotestsrc", NULL);
- if (!vsrc) {
- g_print("src element creation failed\n");
- return FALSE;
- }
+ vsrc = gst_element_factory_make("videotestsrc", NULL);
+ if (!vsrc) {
+ g_print("src element creation failed\n");
+ return FALSE;
}
if (mode == MODE_LIVE_BUFFER_NV12_VIDEO_SW) {
vconvert = gst_element_factory_make("videoconvert", NULL);