Revert "Uridecodebin3"

This reverts commit 9c217ce6766aaf765cd4efeb09870ba5fffca686.
This commit is contained in:
Barzan Hayati 2025-07-06 23:39:38 +00:00
parent e934bf46fd
commit b74f48a0cc

View File

@ -95,11 +95,11 @@ GstElement *SourceBin::create_uridecode_bin(guint index, gchar *filename,
StreamData *stream_data = new StreamData{(int)index, streammux, prop}; StreamData *stream_data = new StreamData{(int)index, streammux, prop};
// g_print ("creating uridecodebin for [%s]\n", filename); // g_print ("creating uridecodebin for [%s]\n", filename);
g_print("Creating uridecodebin3 for stream_id %d or stream %s \n", index, g_print("Creating uridecodebin for stream_id %d or stream %s \n", index,
filename); filename);
// g_source_id_list[index] = index; // g_source_id_list[index] = index;
g_snprintf(decodebin_name, 15, "source-bin-%02d", index); g_snprintf(decodebin_name, 15, "source-bin-%02d", index);
decodebin = gst_element_factory_make("uridecodebin3", decodebin_name); decodebin = gst_element_factory_make("uridecodebin", decodebin_name);
g_object_set(G_OBJECT(decodebin), "uri", filename, NULL); g_object_set(G_OBJECT(decodebin), "uri", filename, NULL);
g_signal_connect(G_OBJECT(decodebin), "pad-added", G_CALLBACK(cb_newpad), g_signal_connect(G_OBJECT(decodebin), "pad-added", G_CALLBACK(cb_newpad),
stream_data); //&g_source_id_list[index] stream_data); //&g_source_id_list[index]