mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
pbutils: Add a pbutils debug category
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1505>
This commit is contained in:
parent
574cbbf0b5
commit
1c8f7c32aa
6 changed files with 19 additions and 0 deletions
|
@ -43,6 +43,9 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (pbutils_debug);
|
||||
#define GST_CAT_DEFAULT pbutils_debug
|
||||
|
||||
#define GST_SIMPLE_CAPS_HAS_NAME(caps,name) \
|
||||
gst_structure_has_name(gst_caps_get_structure((caps),0),(name))
|
||||
|
||||
|
|
|
@ -299,6 +299,9 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (pbutils_debug);
|
||||
#define GST_CAT_DEFAULT pbutils_debug
|
||||
|
||||
/* GstEncodingProfile API */
|
||||
#define PROFILE_LOCK(profile) (g_mutex_lock(&((GstEncodingProfile*)profile)->lock))
|
||||
#define PROFILE_UNLOCK(profile) (g_mutex_unlock(&((GstEncodingProfile*)profile)->lock))
|
||||
|
|
|
@ -88,6 +88,9 @@
|
|||
|
||||
/* Documented in encoding-profile.c */
|
||||
|
||||
GST_DEBUG_CATEGORY_EXTERN (pbutils_debug);
|
||||
#define GST_CAT_DEFAULT pbutils_debug
|
||||
|
||||
#define GST_ENCODING_TARGET_HEADER "GStreamer Encoding Target"
|
||||
#define GST_ENCODING_TARGET_DIRECTORY "encoding-profiles"
|
||||
#define GST_ENCODING_TARGET_SUFFIX ".gep"
|
||||
|
|
|
@ -61,6 +61,9 @@
|
|||
|
||||
#include "gst/gst-i18n-plugin.h"
|
||||
|
||||
GST_DEBUG_CATEGORY (pbutils_debug);
|
||||
#define GST_CAT_DEFAULT pbutils_debug
|
||||
|
||||
static gpointer
|
||||
_init_locale_text_domain (gpointer data)
|
||||
{
|
||||
|
@ -101,6 +104,8 @@ gst_pb_utils_init (void)
|
|||
GST_LOG ("already initialised");
|
||||
return;
|
||||
}
|
||||
GST_DEBUG_CATEGORY_INIT (pbutils_debug, "pbutils", 0,
|
||||
"GStreamer Plugins Base utils");
|
||||
gst_pb_utils_init_locale_text_domain ();
|
||||
|
||||
inited = TRUE;
|
||||
|
|
|
@ -1467,6 +1467,8 @@ libgstpbutils_suite (void)
|
|||
Suite *s = suite_create ("pbutils library");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
|
||||
gst_pb_utils_init ();
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_pb_utils_init);
|
||||
tcase_add_test (tc_chain, test_pb_utils_post_missing_messages);
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <gst/pbutils/encoding-profile.h>
|
||||
#include <gst/pbutils/encoding-target.h>
|
||||
#include <gst/pbutils/pbutils.h>
|
||||
|
||||
#ifdef G_OS_UNIX
|
||||
#include <unistd.h> /* For R_OK etc. */
|
||||
|
@ -698,6 +699,8 @@ profile_suite (void)
|
|||
can_write = FALSE; /* FIXME: fix can_write test on Windows */
|
||||
#endif
|
||||
|
||||
gst_pb_utils_init ();
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
|
||||
tcase_add_test (tc_chain, test_profile_creation);
|
||||
|
|
Loading…
Reference in a new issue