From 32e770278a117ece58c10aa162e494f5d11f724c Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Mon, 9 Sep 2019 11:44:44 +0200 Subject: [PATCH] [debug] Fix debug graph dot file dumping. JB#47243 --- src/plugins/gstreamer/camerabin/camerabinsession.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/plugins/gstreamer/camerabin/camerabinsession.cpp b/src/plugins/gstreamer/camerabin/camerabinsession.cpp index 5d17e5a7..cdaee94b 100644 --- a/src/plugins/gstreamer/camerabin/camerabinsession.cpp +++ b/src/plugins/gstreamer/camerabin/camerabinsession.cpp @@ -73,7 +73,7 @@ #include //#define CAMERABIN_DEBUG 1 -//#define CAMERABIN_DEBUG_DUMP_BIN 1 +#define CAMERABIN_DEBUG_DUMP_BIN 1 #define ENUM_NAME(c,e,v) (c::staticMetaObject.enumerator(c::staticMetaObject.indexOfEnumerator(e)).valueToKey((v))) #define FILENAME_PROPERTY "location" @@ -1111,9 +1111,7 @@ bool CameraBinSession::processBusMessage(const QGstreamerMessage &message) } #ifdef CAMERABIN_DEBUG_DUMP_BIN - _gst_debug_bin_to_dot_file_with_ts(GST_BIN(m_camerabin), - GstDebugGraphDetails(GST_DEBUG_GRAPH_SHOW_ALL /* GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE | GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS | GST_DEBUG_GRAPH_SHOW_STATES*/), - "camerabin_error"); + GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(m_camerabin), GST_DEBUG_GRAPH_SHOW_ALL, "camerabin_error"); #endif @@ -1165,9 +1163,7 @@ bool CameraBinSession::processBusMessage(const QGstreamerMessage &message) #endif #ifdef CAMERABIN_DEBUG_DUMP_BIN - _gst_debug_bin_to_dot_file_with_ts(GST_BIN(m_camerabin), - GstDebugGraphDetails(GST_DEBUG_GRAPH_SHOW_ALL /*GST_DEBUG_GRAPH_SHOW_MEDIA_TYPE | GST_DEBUG_GRAPH_SHOW_NON_DEFAULT_PARAMS | GST_DEBUG_GRAPH_SHOW_STATES*/), - "camerabin"); + GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS(GST_BIN(m_camerabin), GST_DEBUG_GRAPH_SHOW_ALL, "camerabin"); #endif switch (newState) {