rename utils to pbutils

Original commit message from CVS:
* configure.ac:
* docs/libs/gst-plugins-base-libs-docs.sgml:
* docs/libs/gst-plugins-base-libs-sections.txt:
* gst-libs/gst/Makefile.am:
* gst-libs/gst/interfaces/mixer.c:
* gst-libs/gst/pbutils/Makefile.am:
* gst-libs/gst/pbutils/descriptions.c:
(gst_pb_utils_get_source_description),
(gst_pb_utils_get_sink_description),
(gst_pb_utils_get_decoder_description),
(gst_pb_utils_get_encoder_description),
(gst_pb_utils_get_element_description),
(gst_pb_utils_add_codec_description_to_tag_list),
(gst_pb_utils_get_codec_description), (gst_pb_utils_list_all):
* gst-libs/gst/pbutils/descriptions.h:
* gst-libs/gst/pbutils/install-plugins.c:
* gst-libs/gst/pbutils/install-plugins.h:
* gst-libs/gst/pbutils/missing-plugins.c:
(gst_missing_uri_source_message_new),
(gst_missing_uri_sink_message_new),
(gst_missing_element_message_new),
(gst_missing_decoder_message_new),
(gst_missing_encoder_message_new),
(gst_missing_plugin_message_get_description):
* gst-libs/gst/pbutils/missing-plugins.h:
* gst-libs/gst/pbutils/pbutils.c: (gst_pb_utils_init):
* gst-libs/gst/pbutils/pbutils.h:
* gst-libs/gst/utils/Makefile.am:
* gst-libs/gst/utils/base-utils.c:
* gst-libs/gst/utils/base-utils.h:
* gst-libs/gst/utils/descriptions.c:
* gst-libs/gst/utils/descriptions.h:
* gst-libs/gst/utils/install-plugins.c:
* gst-libs/gst/utils/install-plugins.h:
* gst-libs/gst/utils/missing-plugins.c:
* gst-libs/gst/utils/missing-plugins.h:
* gst-plugins-base.spec.in:
* gst/playback/Makefile.am:
* gst/playback/gstdecodebin.c:
* gst/playback/gstdecodebin2.c:
* gst/playback/gstplaybasebin.c: (setup_subtitle),
(gen_source_element):
* gst/playback/gstplaybin.c: (plugin_init):
* tests/check/Makefile.am:
* tests/check/libs/pbutils.c: (GST_START_TEST),
(test_pb_utils_install_plugins_do_callout), (libgstpbutils_suite):
* tests/check/libs/utils.c:
rename utils to pbutils
parent 64d706f4
2007-03-05 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:
* docs/libs/gst-plugins-base-libs-docs.sgml:
* docs/libs/gst-plugins-base-libs-sections.txt:
* gst-libs/gst/Makefile.am:
* gst-libs/gst/interfaces/mixer.c:
* gst-libs/gst/pbutils/Makefile.am:
* gst-libs/gst/pbutils/descriptions.c:
(gst_pb_utils_get_source_description),
(gst_pb_utils_get_sink_description),
(gst_pb_utils_get_decoder_description),
(gst_pb_utils_get_encoder_description),
(gst_pb_utils_get_element_description),
(gst_pb_utils_add_codec_description_to_tag_list),
(gst_pb_utils_get_codec_description), (gst_pb_utils_list_all):
* gst-libs/gst/pbutils/descriptions.h:
* gst-libs/gst/pbutils/install-plugins.c:
* gst-libs/gst/pbutils/install-plugins.h:
* gst-libs/gst/pbutils/missing-plugins.c:
(gst_missing_uri_source_message_new),
(gst_missing_uri_sink_message_new),
(gst_missing_element_message_new),
(gst_missing_decoder_message_new),
(gst_missing_encoder_message_new),
(gst_missing_plugin_message_get_description):
* gst-libs/gst/pbutils/missing-plugins.h:
* gst-libs/gst/pbutils/pbutils.c: (gst_pb_utils_init):
* gst-libs/gst/pbutils/pbutils.h:
* gst-libs/gst/utils/Makefile.am:
* gst-libs/gst/utils/base-utils.c:
* gst-libs/gst/utils/base-utils.h:
* gst-libs/gst/utils/descriptions.c:
* gst-libs/gst/utils/descriptions.h:
* gst-libs/gst/utils/install-plugins.c:
* gst-libs/gst/utils/install-plugins.h:
* gst-libs/gst/utils/missing-plugins.c:
* gst-libs/gst/utils/missing-plugins.h:
* gst-plugins-base.spec.in:
* gst/playback/Makefile.am:
* gst/playback/gstdecodebin.c:
* gst/playback/gstdecodebin2.c:
* gst/playback/gstplaybasebin.c: (setup_subtitle),
(gen_source_element):
* gst/playback/gstplaybin.c: (plugin_init):
* tests/check/Makefile.am:
* tests/check/libs/pbutils.c: (GST_START_TEST),
(test_pb_utils_install_plugins_do_callout), (libgstpbutils_suite):
* tests/check/libs/utils.c:
rename utils to pbutils
2007-03-02 Jan Schmidt <thaytan@mad.scientist.com>
* docs/plugins/Makefile.am:
......@@ -210,7 +210,7 @@ AC_CHECK_HEADERS([sys/socket.h],
HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
AM_CONDITIONAL(HAVE_SYS_SOCKET_H, test "x$HAVE_SYS_SOCKET_H" = "xyes")
dnl used in gst-libs/gst/utils and associated unit test
dnl used in gst-libs/gst/pbutils and associated unit test
AC_CHECK_HEADERS([process.h sys/types.h sys/wait.h sys/stat.h])
dnl ffmpegcolorspace includes _stdint.h
......@@ -656,7 +656,7 @@ gst-libs/gst/netbuffer/Makefile
gst-libs/gst/riff/Makefile
gst-libs/gst/rtp/Makefile
gst-libs/gst/tag/Makefile
gst-libs/gst/utils/Makefile
gst-libs/gst/pbutils/Makefile
gst-libs/gst/video/Makefile
tools/Makefile
win32/common/config.h
......
......@@ -46,10 +46,10 @@
<!ENTITY GstTagVorbis SYSTEM "xml/gsttagvorbis.xml">
<!ENTITY GstTagID3 SYSTEM "xml/gsttagid3.xml">
<!-- utils -->
<!ENTITY GstBaseUtils SYSTEM "xml/gstbaseutils.xml">
<!ENTITY GstBaseUtilsDescriptions SYSTEM "xml/gstbaseutilsdescriptions.xml">
<!ENTITY GstBaseUtilsMissingPlugins SYSTEM "xml/gstbaseutilsmissingplugins.xml">
<!ENTITY GstBaseUtilsInstallPlugins SYSTEM "xml/gstbaseutilsinstallplugins.xml">
<!ENTITY GstPBUtils SYSTEM "xml/gstpbutils.xml">
<!ENTITY GstPBUtilsDescriptions SYSTEM "xml/gstpbutilsdescriptions.xml">
<!ENTITY GstPBUtilsMissingPlugins SYSTEM "xml/gstpbutilsmissingplugins.xml">
<!ENTITY GstPBUtilsInstallPlugins SYSTEM "xml/gstpbutilsinstallplugins.xml">
<!-- video -->
<!ENTITY GstVideo SYSTEM "xml/gstvideo.xml">
<!ENTITY GstVideoFilter SYSTEM "xml/gstvideofilter.xml">
......@@ -183,13 +183,13 @@
<para>
This library should be linked to by getting cflags and libs from
<filename>gstreamer-plugins-base.pc</filename> and adding
<filename>-lgstbaseutils-&GST_MAJORMINOR;</filename> to the library
<filename>-lgstpbutils-&GST_MAJORMINOR;</filename> to the library
flags.
</para>
&GstBaseUtils;
&GstBaseUtilsDescriptions;
&GstBaseUtilsMissingPlugins;
&GstBaseUtilsInstallPlugins;
&GstPBUtils;
&GstPBUtilsDescriptions;
&GstPBUtilsMissingPlugins;
&GstPBUtilsInstallPlugins;
</chapter>
<chapter id="gstreamer-video">
......
......@@ -917,14 +917,14 @@ gst_tag_to_id3_tag
# base utils
<SECTION>
<FILE>gstbaseutils</FILE>
<FILE>gstpbutils</FILE>
<INCLUDE>gst/utils/base-utils.h</INCLUDE>
<SUBSECTION>
gst_base_utils_init
gst_pb_utils_init
</SECTION>
<SECTION>
<FILE>gstbaseutilsmissingplugins</FILE>
<FILE>gstpbutilsmissingplugins</FILE>
<INCLUDE>gst/utils/missing-plugins.h</INCLUDE>
<SUBSECTION>
gst_missing_plugin_message_get_installer_detail
......@@ -939,7 +939,7 @@ gst_missing_element_message_new
</SECTION>
<SECTION>
<FILE>gstbaseutilsinstallplugins</FILE>
<FILE>gstpbutilsinstallplugins</FILE>
<INCLUDE>gst/utils/install-plugins.h</INCLUDE>
<SUBSECTION>
GstInstallPluginsReturn
......@@ -956,17 +956,17 @@ gst_install_plugins_context_set_xid
</SECTION>
<SECTION>
<FILE>gstbaseutilsdescriptions</FILE>
<FILE>gstpbutilsdescriptions</FILE>
<INCLUDE>gst/utils/descriptions.h</INCLUDE>
<SUBSECTION>
gst_base_utils_get_source_description
gst_base_utils_get_sink_description
gst_base_utils_get_decoder_description
gst_base_utils_get_encoder_description
gst_base_utils_get_element_description
gst_pb_utils_get_source_description
gst_pb_utils_get_sink_description
gst_pb_utils_get_decoder_description
gst_pb_utils_get_encoder_description
gst_pb_utils_get_element_description
<SUBSECTION>
gst_base_utils_add_codec_description_to_tag_list
gst_base_utils_get_codec_description
gst_pb_utils_add_codec_description_to_tag_list
gst_pb_utils_get_codec_description
</SECTION>
# video
......
......@@ -9,9 +9,9 @@ SUBDIRS = \
cdda \
floatcast \
netbuffer \
pbutils \
riff \
rtp \
utils \
video
noinst_HEADERS = gettext.h gst-i18n-plugin.h
......@@ -180,7 +180,7 @@ gst_mixer_set_volume (GstMixer * mixer, GstMixerTrack * track, gint * volumes)
}
}
/*
/**
* gst_mixer_get_volume:
* @mixer: the #GstMixer (a #GstElement) that owns the track
* @track: the GstMixerTrack to get the volume from.
......
lib_LTLIBRARIES = libgstbaseutils-@GST_MAJORMINOR@.la
lib_LTLIBRARIES = libgstpbutils-@GST_MAJORMINOR@.la
libgstbaseutils_@GST_MAJORMINOR@_la_SOURCES = \
base-utils.c \
base-utils.h \
libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
pbutils.c \
pbutils.h \
descriptions.c \
descriptions.h \
install-plugins.c \
......@@ -10,13 +10,13 @@ libgstbaseutils_@GST_MAJORMINOR@_la_SOURCES = \
missing-plugins.c \
missing-plugins.h
libgstbaseutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/utils
libgstbaseutils_@GST_MAJORMINOR@include_HEADERS = \
base-utils.h \
libgstpbutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/utils
libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
pbutils.h \
descriptions.h \
install-plugins.h \
missing-plugins.h
libgstbaseutils_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS)
libgstbaseutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libgstbaseutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
libgstpbutils_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS)
libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
/* GStreamer base utils library source/sink/codec description support
/* GStreamer Plugins Base utils library source/sink/codec description support
* Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
*
* This library is free software; you can redistribute it and/or
......@@ -18,7 +18,7 @@
*/
/**
* SECTION:gstbaseutilsdescriptions
* SECTION:gstpbutilsdescriptions
* @short_description: Provides human-readable descriptions for caps/codecs
* and encoder, decoder, URI source and URI sink elements
*
......@@ -29,7 +29,7 @@
* in error dialogs or other messages shown to users.
* </para>
* <para>
* gst_base_utils_add_codec_description_to_tag_list() is a utility function
* gst_pb_utils_add_codec_description_to_tag_list() is a utility function
* for demuxer and decoder elements to add audio/video codec tags from a
* given (fixed) #GstCaps.
* </para>
......@@ -42,7 +42,7 @@
#include "gst/gst-i18n-plugin.h"
#include "base-utils.h"
#include "pbutils.h"
#include <string.h>
......@@ -611,7 +611,7 @@ caps_are_rtp_caps (const GstCaps * caps, const gchar * media, gchar ** format)
}
/**
* gst_base_utils_get_source_description:
* gst_pb_utils_get_source_description:
* @protocol: the protocol the source element needs to handle, e.g. "http"
*
* Returns a localised string describing a source element handling the protocol
......@@ -626,7 +626,7 @@ caps_are_rtp_caps (const GstCaps * caps, const gchar * media, gchar ** format)
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_source_description (const gchar * protocol)
gst_pb_utils_get_source_description (const gchar * protocol)
{
gchar *proto_uc, *ret;
......@@ -659,7 +659,7 @@ gst_base_utils_get_source_description (const gchar * protocol)
}
/**
* gst_base_utils_get_sink_description:
* gst_pb_utils_get_sink_description:
* @protocol: the protocol the sink element needs to handle, e.g. "http"
*
* Returns a localised string describing a sink element handling the protocol
......@@ -674,7 +674,7 @@ gst_base_utils_get_source_description (const gchar * protocol)
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_sink_description (const gchar * protocol)
gst_pb_utils_get_sink_description (const gchar * protocol)
{
gchar *proto_uc, *ret;
......@@ -694,7 +694,7 @@ gst_base_utils_get_sink_description (const gchar * protocol)
}
/**
* gst_base_utils_get_decoder_description:
* gst_pb_utils_get_decoder_description:
* @caps: the (fixed) #GstCaps for which an decoder description is needed
*
* Returns a localised string describing an decoder for the format specified
......@@ -709,7 +709,7 @@ gst_base_utils_get_sink_description (const gchar * protocol)
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_decoder_description (const GstCaps * caps)
gst_pb_utils_get_decoder_description (const GstCaps * caps)
{
gchar *str, *ret;
......@@ -727,7 +727,7 @@ gst_base_utils_get_decoder_description (const GstCaps * caps)
} else {
const FormatInfo *info;
str = gst_base_utils_get_codec_description (caps);
str = gst_pb_utils_get_codec_description (caps);
info = find_format_info (caps);
if (info != NULL && (info->flags & FLAG_CONTAINER) != 0) {
ret = g_strdup_printf (_("%s demuxer"), str);
......@@ -742,7 +742,7 @@ gst_base_utils_get_decoder_description (const GstCaps * caps)
}
/**
* gst_base_utils_get_encoder_description:
* gst_pb_utils_get_encoder_description:
* @caps: the (fixed) #GstCaps for which an encoder description is needed
*
* Returns a localised string describing an encoder for the format specified
......@@ -757,7 +757,7 @@ gst_base_utils_get_decoder_description (const GstCaps * caps)
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_encoder_description (const GstCaps * caps)
gst_pb_utils_get_encoder_description (const GstCaps * caps)
{
gchar *str, *ret;
......@@ -775,7 +775,7 @@ gst_base_utils_get_encoder_description (const GstCaps * caps)
} else {
const FormatInfo *info;
str = gst_base_utils_get_codec_description (caps);
str = gst_pb_utils_get_codec_description (caps);
info = find_format_info (caps);
if (info != NULL && (info->flags & FLAG_CONTAINER) != 0) {
ret = g_strdup_printf (_("%s muxer"), str);
......@@ -790,7 +790,7 @@ gst_base_utils_get_encoder_description (const GstCaps * caps)
}
/**
* gst_base_utils_get_element_description:
* gst_pb_utils_get_element_description:
* @factory_name: the name of the element, e.g. "gnomevfssrc"
*
* Returns a localised string describing the given element, for use in
......@@ -805,7 +805,7 @@ gst_base_utils_get_encoder_description (const GstCaps * caps)
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_element_description (const gchar * factory_name)
gst_pb_utils_get_element_description (const gchar * factory_name)
{
gchar *ret;
......@@ -819,7 +819,7 @@ gst_base_utils_get_element_description (const gchar * factory_name)
}
/**
* gst_base_utils_add_codec_description_to_tag_list:
* gst_pb_utils_add_codec_description_to_tag_list:
* @taglist: a #GstTagList
* @codec_tag: a GStreamer codec tag such as #GST_TAG_AUDIO_CODEC,
* #GST_TAG_VIDEO_CODEC or #GST_TAG_CODEC
......@@ -830,7 +830,7 @@ gst_base_utils_get_element_description (const gchar * factory_name)
* Returns: TRUE if a codec tag was added, FALSE otherwise.
*/
gboolean
gst_base_utils_add_codec_description_to_tag_list (GstTagList * taglist,
gst_pb_utils_add_codec_description_to_tag_list (GstTagList * taglist,
const gchar * codec_tag, const GstCaps * caps)
{
const FormatInfo *info;
......@@ -856,7 +856,7 @@ gst_base_utils_add_codec_description_to_tag_list (GstTagList * taglist,
}
/**
* gst_base_utils_get_codec_description:
* gst_pb_utils_get_codec_description:
* @caps: the (fixed) #GstCaps for which an format description is needed
*
* Returns a localised (as far as this is possible) string describing the
......@@ -864,13 +864,13 @@ gst_base_utils_add_codec_description_to_tag_list (GstTagList * taglist,
* to be seen by the user. Should never return NULL unless @caps is invalid.
*
* Also see the convenience function
* gst_base_utils_add_codec_description_to_tag_list().
* gst_pb_utils_add_codec_description_to_tag_list().
*
* Returns: a newly-allocated description string, or NULL on error. Free
* string with g_free() when not needed any longer.
*/
gchar *
gst_base_utils_get_codec_description (const GstCaps * caps)
gst_pb_utils_get_codec_description (const GstCaps * caps)
{
const FormatInfo *info;
gchar *str, *comma;
......@@ -902,7 +902,7 @@ gst_base_utils_get_codec_description (const GstCaps * caps)
#if 0
void
gst_base_utils_list_all (void)
gst_pb_utils_list_all (void)
{
gint i;
......
......@@ -17,8 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_BASE_UTILS_DESCRIPTIONS_H__
#define __GST_BASE_UTILS_DESCRIPTIONS_H__
#ifndef __GST_PB_UTILS_DESCRIPTIONS_H__
#define __GST_PB_UTILS_DESCRIPTIONS_H__
#include <gst/gsttaglist.h>
#include <gst/gstcaps.h>
......@@ -30,29 +30,29 @@ G_BEGIN_DECLS
* from caps
*/
gboolean gst_base_utils_add_codec_description_to_tag_list (GstTagList * taglist,
gboolean gst_pb_utils_add_codec_description_to_tag_list (GstTagList * taglist,
const gchar * codec_tag,
const GstCaps * caps);
gchar * gst_base_utils_get_codec_description (const GstCaps * caps);
gchar * gst_pb_utils_get_codec_description (const GstCaps * caps);
/*
* functions mainly used by the missing plugins message creation functions to
* find descriptions of what exactly is missing
*/
gchar * gst_base_utils_get_source_description (const gchar * protocol);
gchar * gst_pb_utils_get_source_description (const gchar * protocol);
gchar * gst_base_utils_get_sink_description (const gchar * protocol);
gchar * gst_pb_utils_get_sink_description (const gchar * protocol);
gchar * gst_base_utils_get_decoder_description (const GstCaps * caps);
gchar * gst_pb_utils_get_decoder_description (const GstCaps * caps);
gchar * gst_base_utils_get_encoder_description (const GstCaps * caps);
gchar * gst_pb_utils_get_encoder_description (const GstCaps * caps);
gchar * gst_base_utils_get_element_description (const gchar * factory_name);
gchar * gst_pb_utils_get_element_description (const gchar * factory_name);
G_END_DECLS
#endif /* __GST_BASE_UTILS_DESCRIPTIONS_H__ */
#endif /* __GST_PB_UTILS_DESCRIPTIONS_H__ */
......@@ -19,7 +19,7 @@
*/
/**
* SECTION:gstbaseutilsinstallplugins
* SECTION:gstpbutilsinstallplugins
* @short_description: Missing plugin installation support for applications
*
* <refsect2>
......
......@@ -18,8 +18,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_BASE_UTILS_INSTALL_PLUGINS_H__
#define __GST_BASE_UTILS_INSTALL_PLUGINS_H__
#ifndef __GST_PB_UTILS_INSTALL_PLUGINS_H__
#define __GST_PB_UTILS_INSTALL_PLUGINS_H__
#include <glib.h>
......@@ -133,5 +133,5 @@ gboolean gst_install_plugins_installation_in_progress (void);
G_END_DECLS
#endif /* __GST_BASE_UTILS_INSTALL_PLUGINS_H__ */
#endif /* __GST_PB_UTILS_INSTALL_PLUGINS_H__ */
......@@ -18,7 +18,7 @@
*/
/**
* SECTION:gstbaseutilsmissingplugins
* SECTION:gstpbutilsmissingplugins
* @short_description: Create, recognise and parse missing-plugins messages
*
* <refsect2>
......@@ -66,7 +66,7 @@
#include "gst/gst-i18n-plugin.h"
#include "base-utils.h"
#include "pbutils.h"
#include <string.h>
......@@ -164,7 +164,7 @@ gst_missing_uri_source_message_new (GstElement * element,
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
g_return_val_if_fail (protocol != NULL, NULL);
description = gst_base_utils_get_source_description (protocol);
description = gst_pb_utils_get_source_description (protocol);
s = gst_structure_new ("missing-plugin", "type", G_TYPE_STRING,
"urisource", "detail", G_TYPE_STRING, protocol, "name", G_TYPE_STRING,
......@@ -196,7 +196,7 @@ gst_missing_uri_sink_message_new (GstElement * element, const gchar * protocol)
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
g_return_val_if_fail (protocol != NULL, FALSE);
description = gst_base_utils_get_sink_description (protocol);
description = gst_pb_utils_get_sink_description (protocol);
s = gst_structure_new ("missing-plugin", "type", G_TYPE_STRING,
"urisink", "detail", G_TYPE_STRING, protocol, "name", G_TYPE_STRING,
......@@ -229,7 +229,7 @@ gst_missing_element_message_new (GstElement * element,
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
g_return_val_if_fail (factory_name != NULL, FALSE);
description = gst_base_utils_get_element_description (factory_name);
description = gst_pb_utils_get_element_description (factory_name);
s = gst_structure_new ("missing-plugin", "type", G_TYPE_STRING,
"element", "detail", G_TYPE_STRING, factory_name, "name", G_TYPE_STRING,
......@@ -266,7 +266,7 @@ gst_missing_decoder_message_new (GstElement * element,
g_return_val_if_fail (!gst_caps_is_empty (decode_caps), FALSE);
g_return_val_if_fail (gst_caps_is_fixed (decode_caps), FALSE);
description = gst_base_utils_get_decoder_description (decode_caps);
description = gst_pb_utils_get_decoder_description (decode_caps);
caps = copy_and_clean_caps (decode_caps);
s = gst_structure_new ("missing-plugin", "type", G_TYPE_STRING,
......@@ -306,7 +306,7 @@ gst_missing_encoder_message_new (GstElement * element,
g_return_val_if_fail (!gst_caps_is_empty (encode_caps), FALSE);
g_return_val_if_fail (gst_caps_is_fixed (encode_caps), FALSE);
description = gst_base_utils_get_encoder_description (encode_caps);
description = gst_pb_utils_get_encoder_description (encode_caps);
caps = copy_and_clean_caps (encode_caps);
s = gst_structure_new ("missing-plugin", "type", G_TYPE_STRING,
......@@ -505,11 +505,11 @@ gst_missing_plugin_message_get_description (GstMessage * msg)
if (missing_structure_get_string_detail (msg->structure, &detail)) {
if (missing_type == GST_MISSING_TYPE_URISOURCE)
ret = gst_base_utils_get_source_description (detail);
ret = gst_pb_utils_get_source_description (detail);
else if (missing_type == GST_MISSING_TYPE_URISINK)
ret = gst_base_utils_get_sink_description (detail);
ret = gst_pb_utils_get_sink_description (detail);
else
ret = gst_base_utils_get_sink_description (detail);
ret = gst_pb_utils_get_sink_description (detail);
g_free (detail);
}
break;
......@@ -520,9 +520,9 @@ gst_missing_plugin_message_get_description (GstMessage * msg)
if (missing_structure_get_caps_detail (msg->structure, &caps)) {
if (missing_type == GST_MISSING_TYPE_DECODER)
ret = gst_base_utils_get_decoder_description (caps);
ret = gst_pb_utils_get_decoder_description (caps);
else
ret = gst_base_utils_get_encoder_description (caps);
ret = gst_pb_utils_get_encoder_description (caps);
gst_caps_unref (caps);
}
break;
......
......@@ -17,8 +17,8 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_BASE_UTILS_MISSING_PLUGINS_H__
#define __GST_BASE_UTILS_MISSING_PLUGINS_H__
#ifndef __GST_PB_UTILS_MISSING_PLUGINS_H__
#define __GST_PB_UTILS_MISSING_PLUGINS_H__
#include <gst/gstmessage.h>
#include <gst/gstcaps.h>
......@@ -56,5 +56,5 @@ gboolean gst_is_missing_plugin_message (GstMessage * msg);
G_END_DECLS
#endif /* __GST_BASE_UTILS_MISSING_PLUGINS_H__ */
#endif /* __GST_PB_UTILS_MISSING_PLUGINS_H__ */
......@@ -18,12 +18,12 @@
*/
/**
* SECTION:gstbaseutils
* SECTION:gstpbutils
* @short_description: General Application and Plugin Utility Library
*
* <refsect2>
* <para>
* libgstbaseutils is a general utility library for plugins and applications,
* libgstpbutils is a general utility library for plugins and applications,
* available since gst-plugins-base 0.10.12. It currently provides the
* following:
* </para>
......@@ -58,12 +58,12 @@
* <para>
* You should obtain the required CFLAGS and LIBS using pkg-config on the
* gstreamer-plugins-base-0.10 module. You will then also need to add
* '-lgstbaseutils-0.10' manually to your LIBS line.
* '-lgstpbutils-0.10' manually to your LIBS line.
* </para>
* <title>Library initialisation</title>
* <para>
* Before using any of its functions, applications and plugins must call
* gst_base_utils_init() to initialise the library.
* gst_pb_utils_init() to initialise the library.
* </para>
* </refsect2>
*/
......@@ -72,12 +72,12 @@
# include "config.h"
#endif
#include "base-utils.h"
#include "pbutils.h"
#include "gst/gst-i18n-plugin.h"
/**
* gst_base_utils_init:
* gst_pb_utils_init:
*
* Initialises the base utils support library. This function is not
* thread-safe. Applications should call it after calling gst_init(),
......@@ -89,7 +89,7 @@
* Since: 0.10.12
*/
void
gst_base_utils_init (void)
gst_pb_utils_init (void)
{
static gboolean inited; /* FALSE */
......
......@@ -17,20 +17,20 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef __GST_BASE_UTILS_BASE_UTILS_H__
#define __GST_BASE_UTILS_BASE_UTILS_H__
#ifndef __GST_PB_UTILS_BASE_UTILS_H__
#define __GST_PB_UTILS_BASE_UTILS_H__
#include <gst/gst.h>
#include <gst/utils/descriptions.h>
#include <gst/utils/missing-plugins.h>
#include <gst/utils/install-plugins.h>
#include <gst/pbutils/descriptions.h>
#include <gst/pbutils/missing-plugins.h>
#include <gst/pbutils/install-plugins.h>
G_BEGIN_DECLS
void gst_base_utils_init (void);
void gst_pb_utils_init (void);
G_END_DECLS
#endif /* __GST_BASE_UTILS_BASE_UTILS_H__ */
#endif /* __GST_PB_UTILS_BASE_UTILS_H__ */
lib_LTLIBRARIES = libgstbaseutils-@GST_MAJORMINOR@.la
libgstbaseutils_@GST_MAJORMINOR@_la_SOURCES = \
base-utils.c \
base-utils.h \
descriptions.c \
descriptions.h \
install-plugins.c \
install-plugins.h \
missing-plugins.c \
missing-plugins.h
libgstbaseutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/utils
libgstbaseutils_@GST_MAJORMINOR@include_HEADERS = \
base-utils.h \
descriptions.h \
install-plugins.h \
missing-plugins.h
libgstbaseutils_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS)
libgstbaseutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libgstbaseutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
/* GStreamer base utils library
* Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/