Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1505>
#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))
#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))
/* 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"
#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)
{
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;
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);
#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. */
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);