rtsp-onvif-media: Add some debugging
Add a debug category and some debug to the ONVIF media Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8378>
This commit is contained in:
parent
84f8fcedc6
commit
c83c7f9a92
@ -44,6 +44,9 @@
|
||||
#include "rtsp-onvif-media.h"
|
||||
#include "rtsp-latency-bin.h"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (rtsp_onvif_media_debug);
|
||||
#define GST_CAT_DEFAULT rtsp_onvif_media_debug
|
||||
|
||||
struct GstRTSPOnvifMediaPrivate
|
||||
{
|
||||
GMutex lock;
|
||||
@ -234,6 +237,9 @@ gst_rtsp_onvif_media_class_init (GstRTSPOnvifMediaClass * klass)
|
||||
gobject_class->finalize = gst_rtsp_onvif_media_finalize;
|
||||
|
||||
media_class->setup_sdp = gst_rtsp_onvif_media_setup_sdp;
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (rtsp_onvif_media_debug, "rtsponvifmedia", 0,
|
||||
"GstRTSPOnvifMedia");
|
||||
}
|
||||
|
||||
static void
|
||||
@ -272,10 +278,15 @@ gst_rtsp_onvif_media_collect_backchannel (GstRTSPOnvifMedia * media)
|
||||
if (!element)
|
||||
return ret;
|
||||
|
||||
GST_LOG_OBJECT (media, "Looking for backchannel bin onvif-backchannel");
|
||||
|
||||
backchannel_bin =
|
||||
gst_bin_get_by_name (GST_BIN (element), "onvif-backchannel");
|
||||
if (!backchannel_bin)
|
||||
if (!backchannel_bin) {
|
||||
GST_ERROR_OBJECT (media,
|
||||
"onvif-backchannel bin not found in media pipeline");
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* We don't want the backchannel element, which is a receiver, to affect
|
||||
* latency on the complete pipeline. That's why we remove it from the
|
||||
@ -298,6 +309,7 @@ gst_rtsp_onvif_media_collect_backchannel (GstRTSPOnvifMedia * media)
|
||||
if (!pad)
|
||||
goto out;
|
||||
|
||||
GST_LOG_OBJECT (media, "Creating backchannel stream");
|
||||
gst_rtsp_media_create_stream (GST_RTSP_MEDIA (media), latency_bin, pad);
|
||||
ret = TRUE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user