|
@@ -4,7 +4,7 @@
|
|
|
* @Autor: lishengyin
|
|
|
* @Date: 2021-10-13 09:35:37
|
|
|
* @LastEditors: lishengyin
|
|
|
- * @LastEditTime: 2022-10-09 10:37:13
|
|
|
+ * @LastEditTime: 2022-10-09 10:50:38
|
|
|
*/
|
|
|
#include "inference.h"
|
|
|
|
|
@@ -655,7 +655,7 @@ namespace MIVA{
|
|
|
void Inference::decodebin_child_added (GstChildProxy * child_proxy, GObject * object,
|
|
|
gchar * name, gpointer user_data)
|
|
|
{
|
|
|
- WarnL << "Decodebin child added: " << name;
|
|
|
+ //WarnL << "Decodebin child added: " << name;
|
|
|
if (g_strrstr (name, "decodebin") == name) {
|
|
|
|
|
|
g_signal_connect (G_OBJECT (object), "child-added",
|
|
@@ -728,8 +728,7 @@ namespace MIVA{
|
|
|
GstCaps *caps = gst_pad_query_caps (pad, NULL);
|
|
|
const GstStructure *str = gst_caps_get_structure (caps, 0);
|
|
|
const gchar *name = gst_structure_get_name (str);
|
|
|
-
|
|
|
- WarnL << "decodebin new pad " << name;
|
|
|
+ // WarnL << "decodebin new pad " << name;
|
|
|
if (!strncmp (name, "video", 5)) {
|
|
|
gint source_id = (*(gint *) data);
|
|
|
gchar pad_name[16] = { 0 };
|
|
@@ -739,8 +738,6 @@ namespace MIVA{
|
|
|
if(sinkpad == NULL) sinkpad = gst_element_get_request_pad (g_streammux, pad_name);
|
|
|
if (gst_pad_link (pad, sinkpad) != GST_PAD_LINK_OK) {
|
|
|
ErrorL << "Failed to link decodebin to pipeline: " << pad_name;
|
|
|
- } else {
|
|
|
- InfoL << "Decodebin linked to pipeline";
|
|
|
}
|
|
|
gst_object_unref (sinkpad);
|
|
|
}
|
|
@@ -757,8 +754,7 @@ namespace MIVA{
|
|
|
{
|
|
|
GstElement *bin = NULL;
|
|
|
gchar bin_name[16] = { };
|
|
|
-
|
|
|
- DebugL << "creating uridecodebin for [" << filename << "] index:" << index;
|
|
|
+ // DebugL << "creating uridecodebin for [" << filename << "] index:" << index;
|
|
|
g_source_id_list[index] = index;
|
|
|
g_snprintf (bin_name, 15, "source-bin-%02d", index);
|
|
|
bin = gst_element_factory_make ("uridecodebin", bin_name);
|