mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:36:20 +00:00
server: improve debugging in various objects
This commit is contained in:
parent
0ef53a2d4f
commit
9e97faf2db
6 changed files with 22 additions and 9 deletions
|
@ -60,7 +60,7 @@ free_data (FactoryData * data)
|
||||||
|
|
||||||
static const gchar *factory_key = "GstRTSPMediaFactoryURI";
|
static const gchar *factory_key = "GstRTSPMediaFactoryURI";
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (rtsp_media_factory_uri_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_media_factory_uri_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_media_factory_uri_debug
|
#define GST_CAT_DEFAULT rtsp_media_factory_uri_debug
|
||||||
|
|
||||||
static void gst_rtsp_media_factory_uri_get_property (GObject * object,
|
static void gst_rtsp_media_factory_uri_get_property (GObject * object,
|
||||||
|
|
|
@ -32,7 +32,7 @@ enum
|
||||||
PROP_LAST
|
PROP_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (rtsp_media_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_media_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_media_debug
|
#define GST_CAT_DEFAULT rtsp_media_debug
|
||||||
|
|
||||||
static void gst_rtsp_media_factory_get_property (GObject * object, guint propid,
|
static void gst_rtsp_media_factory_get_property (GObject * object, guint propid,
|
||||||
|
@ -102,7 +102,8 @@ gst_rtsp_media_factory_class_init (GstRTSPMediaFactoryClass * klass)
|
||||||
klass->configure = default_configure;
|
klass->configure = default_configure;
|
||||||
klass->create_pipeline = default_create_pipeline;
|
klass->create_pipeline = default_create_pipeline;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (rtsp_media_debug, "rtspmedia", 0, "GstRTSPMedia");
|
GST_DEBUG_CATEGORY_INIT (rtsp_media_debug, "rtspmediafactory", 0,
|
||||||
|
"GstRTSPMediaFactory");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
G_DEFINE_TYPE (GstRTSPMediaMapping, gst_rtsp_media_mapping, G_TYPE_OBJECT);
|
G_DEFINE_TYPE (GstRTSPMediaMapping, gst_rtsp_media_mapping, G_TYPE_OBJECT);
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (rtsp_media_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_media_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_media_debug
|
#define GST_CAT_DEFAULT rtsp_media_debug
|
||||||
|
|
||||||
static void gst_rtsp_media_mapping_finalize (GObject * obj);
|
static void gst_rtsp_media_mapping_finalize (GObject * obj);
|
||||||
|
@ -39,11 +39,16 @@ gst_rtsp_media_mapping_class_init (GstRTSPMediaMappingClass * klass)
|
||||||
gobject_class->finalize = gst_rtsp_media_mapping_finalize;
|
gobject_class->finalize = gst_rtsp_media_mapping_finalize;
|
||||||
|
|
||||||
klass->find_media = find_media;
|
klass->find_media = find_media;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (rtsp_media_debug, "rtspmediamapping", 0,
|
||||||
|
"GstRTSPMediaMapping");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_rtsp_media_mapping_init (GstRTSPMediaMapping * mapping)
|
gst_rtsp_media_mapping_init (GstRTSPMediaMapping * mapping)
|
||||||
{
|
{
|
||||||
|
GST_DEBUG_OBJECT (mapping, "created");
|
||||||
|
|
||||||
mapping->mappings = g_hash_table_new_full (g_str_hash, g_str_equal,
|
mapping->mappings = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||||
g_free, g_object_unref);
|
g_free, g_object_unref);
|
||||||
}
|
}
|
||||||
|
@ -53,6 +58,8 @@ gst_rtsp_media_mapping_finalize (GObject * obj)
|
||||||
{
|
{
|
||||||
GstRTSPMediaMapping *mapping = GST_RTSP_MEDIA_MAPPING (obj);
|
GstRTSPMediaMapping *mapping = GST_RTSP_MEDIA_MAPPING (obj);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (mapping, "finalized");
|
||||||
|
|
||||||
g_hash_table_unref (mapping->mappings);
|
g_hash_table_unref (mapping->mappings);
|
||||||
|
|
||||||
G_OBJECT_CLASS (gst_rtsp_media_mapping_parent_class)->finalize (obj);
|
G_OBJECT_CLASS (gst_rtsp_media_mapping_parent_class)->finalize (obj);
|
||||||
|
|
|
@ -53,7 +53,7 @@ enum
|
||||||
SIGNAL_LAST
|
SIGNAL_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (rtsp_media_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_media_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_media_debug
|
#define GST_CAT_DEFAULT rtsp_media_debug
|
||||||
|
|
||||||
static GQuark ssrc_stream_map_key;
|
static GQuark ssrc_stream_map_key;
|
||||||
|
@ -134,6 +134,8 @@ gst_rtsp_media_class_init (GstRTSPMediaClass * klass)
|
||||||
ssrc_stream_map_key = g_quark_from_static_string ("GstRTSPServer.stream");
|
ssrc_stream_map_key = g_quark_from_static_string ("GstRTSPServer.stream");
|
||||||
|
|
||||||
gst_element_register (NULL, "rtspfunnel", GST_RANK_NONE, RTSP_TYPE_FUNNEL);
|
gst_element_register (NULL, "rtspfunnel", GST_RANK_NONE, RTSP_TYPE_FUNNEL);
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (rtsp_media_debug, "rtspmedia", 0, "GstRTSPMedia");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -30,7 +30,7 @@ enum
|
||||||
PROP_LAST
|
PROP_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (rtsp_session_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_session_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_session_debug
|
#define GST_CAT_DEFAULT rtsp_session_debug
|
||||||
|
|
||||||
static void gst_rtsp_session_pool_get_property (GObject * object, guint propid,
|
static void gst_rtsp_session_pool_get_property (GObject * object, guint propid,
|
||||||
|
@ -62,8 +62,8 @@ gst_rtsp_session_pool_class_init (GstRTSPSessionPoolClass * klass)
|
||||||
|
|
||||||
klass->create_session_id = create_session_id;
|
klass->create_session_id = create_session_id;
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (rtsp_session_debug, "rtspsession", 0,
|
GST_DEBUG_CATEGORY_INIT (rtsp_session_debug, "rtspsessionpool", 0,
|
||||||
"GstRTSPSession");
|
"GstRTSPSessionPool");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -32,7 +32,7 @@ enum
|
||||||
PROP_LAST
|
PROP_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_EXTERN (rtsp_session_debug);
|
GST_DEBUG_CATEGORY_STATIC (rtsp_session_debug);
|
||||||
#define GST_CAT_DEFAULT rtsp_session_debug
|
#define GST_CAT_DEFAULT rtsp_session_debug
|
||||||
|
|
||||||
static void gst_rtsp_session_get_property (GObject * object, guint propid,
|
static void gst_rtsp_session_get_property (GObject * object, guint propid,
|
||||||
|
@ -63,6 +63,9 @@ gst_rtsp_session_class_init (GstRTSPSessionClass * klass)
|
||||||
g_param_spec_uint ("timeout", "timeout",
|
g_param_spec_uint ("timeout", "timeout",
|
||||||
"the timeout of the session (0 = never)", 0, G_MAXUINT,
|
"the timeout of the session (0 = never)", 0, G_MAXUINT,
|
||||||
DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
DEFAULT_TIMEOUT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT (rtsp_session_debug, "rtspsession", 0,
|
||||||
|
"GstRTSPSession");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue