projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix tests when compiling with glib_checks=disabled
[platform/upstream/gstreamer.git]
/
gst
/
gsttypefind.c
diff --git
a/gst/gsttypefind.c
b/gst/gsttypefind.c
index
2cfb8d0
..
5c2b0d1
100644
(file)
--- a/
gst/gsttypefind.c
+++ b/
gst/gsttypefind.c
@@
-15,18
+15,17
@@
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
*
* 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., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
/**
* SECTION:gsttypefind
*/
/**
* SECTION:gsttypefind
+ * @title: GstTypefind
* @short_description: Stream type detection
*
* The following functions allow you to detect the media type of an unknown
* stream.
* @short_description: Stream type detection
*
* The following functions allow you to detect the media type of an unknown
* stream.
- *
- * Last reviewed on 2005-11-09 (0.9.4)
*/
#include "gst_private.h"
*/
#include "gst_private.h"
@@
-42,8
+41,7
@@
G_DEFINE_POINTER_TYPE (GstTypeFind, gst_type_find);
/**
* gst_type_find_register:
/**
* gst_type_find_register:
- * @plugin: A #GstPlugin, or NULL for a static typefind function (note that
- * passing NULL only works in GStreamer 0.10.16 and later)
+ * @plugin: (allow-none): A #GstPlugin, or %NULL for a static typefind function
* @name: The name for registering
* @rank: The rank (or importance) of this typefind function
* @func: The #GstTypeFindFunction to use
* @name: The name for registering
* @rank: The rank (or importance) of this typefind function
* @func: The #GstTypeFindFunction to use
@@
-60,7
+58,7
@@
G_DEFINE_POINTER_TYPE (GstTypeFind, gst_type_find);
* registering this function will be available for typefinding.
* This function is typically called during an element's plugin initialization.
*
* registering this function will be available for typefinding.
* This function is typically called during an element's plugin initialization.
*
- * Returns:
TRUE on success,
FALSE otherwise
+ * Returns:
%TRUE on success, %
FALSE otherwise
*/
gboolean
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
*/
gboolean
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
@@
-73,17
+71,12
@@
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
GST_INFO ("registering typefind function for %s", name);
GST_INFO ("registering typefind function for %s", name);
- factory = g_object_new
v (GST_TYPE_TYPE_FIND_FACTORY, 0
, NULL);
+ factory = g_object_new
(GST_TYPE_TYPE_FIND_FACTORY
, NULL);
GST_DEBUG_OBJECT (factory, "using new typefind factory for %s", name);
GST_DEBUG_OBJECT (factory, "using new typefind factory for %s", name);
- g_assert (GST_IS_TYPE_FIND_FACTORY (factory));
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name);
gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE_CAST (factory), rank);
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE_CAST (factory), name);
gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE_CAST (factory), rank);
- if (factory->extensions) {
- g_strfreev (factory->extensions);
- factory->extensions = NULL;
- }
if (extensions)
factory->extensions = g_strsplit (extensions, ",", -1);
if (extensions)
factory->extensions = g_strsplit (extensions, ",", -1);
@@
-122,8
+115,8
@@
gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
* the stream. The returned memory is valid until the typefinding function
* returns and must not be freed.
*
* the stream. The returned memory is valid until the typefinding function
* returns and must not be freed.
*
- * Returns: (transfer none) (array length=size)
: the requested data, or NULL
- * if that data is not available.
+ * Returns: (transfer none) (array length=size)
(nullable): the
+ *
requested data, or %NULL
if that data is not available.
*/
const guint8 *
gst_type_find_peek (GstTypeFind * find, gint64 offset, guint size)
*/
const guint8 *
gst_type_find_peek (GstTypeFind * find, gint64 offset, guint size)
@@
-145,8
+138,7
@@
gst_type_find_peek (GstTypeFind * find, gint64 offset, guint size)
* It is up to the caller of the #GstTypeFindFunction to interpret these values.
*/
void
* It is up to the caller of the #GstTypeFindFunction to interpret these values.
*/
void
-gst_type_find_suggest (GstTypeFind * find, guint probability,
- const GstCaps * caps)
+gst_type_find_suggest (GstTypeFind * find, guint probability, GstCaps * caps)
{
g_return_if_fail (find->suggest != NULL);
g_return_if_fail (probability <= 100);
{
g_return_if_fail (find->suggest != NULL);
g_return_if_fail (probability <= 100);
@@
-161,7
+153,7
@@
gst_type_find_suggest (GstTypeFind * find, guint probability,
* @find: The #GstTypeFind object the function was called with
* @probability: The probability in percent that the suggestion is right
* @media_type: the media type of the suggested caps
* @find: The #GstTypeFind object the function was called with
* @probability: The probability in percent that the suggestion is right
* @media_type: the media type of the suggested caps
- * @fieldname:
first field of the suggested caps, or
NULL
+ * @fieldname:
(allow-none): first field of the suggested caps, or %
NULL
* @...: additional arguments to the suggested caps in the same format as the
* arguments passed to gst_structure_new() (ie. triplets of field name,
* field GType and field value)
* @...: additional arguments to the suggested caps in the same format as the
* arguments passed to gst_structure_new() (ie. triplets of field name,
* field GType and field value)
@@
-175,12
+167,10
@@
gst_type_find_suggest (GstTypeFind * find, guint probability,
* passing a #GstCaps argument you can create the caps on the fly in the same
* way as you can with gst_caps_new_simple().
*
* passing a #GstCaps argument you can create the caps on the fly in the same
* way as you can with gst_caps_new_simple().
*
- * Make sure you terminate the list of arguments with a NULL argument and that
+ * Make sure you terminate the list of arguments with a
%
NULL argument and that
* the values passed have the correct type (in terms of width in bytes when
* passed to the vararg function - this applies particularly to gdouble and
* guint64 arguments).
* the values passed have the correct type (in terms of width in bytes when
* passed to the vararg function - this applies particularly to gdouble and
* guint64 arguments).
- *
- * Since: 0.10.20
*/
void
gst_type_find_suggest_simple (GstTypeFind * find, guint probability,
*/
void
gst_type_find_suggest_simple (GstTypeFind * find, guint probability,