diff --git a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-onvif-media.c b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-onvif-media.c index 0b29f898df..e5cd411940 100644 --- a/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-onvif-media.c +++ b/subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-onvif-media.c @@ -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;