gst/gstpreset.c: Use g_unlink instead of unlink.

Original commit message from CVS:
* gst/gstpreset.c:
Use g_unlink instead of unlink.
* gst/gststructure.c:
Use glib type.
* gst/gstutils.c:
Add a FIXME:.
* gst/gsttaglist.c:
* gst/gsttypefind.c:
* gst/gstvalue.c:
Formatting & whitespaces.
This commit is contained in:
Stefan Kost 2008-10-31 14:24:49 +00:00
parent fa7e7d29a2
commit 5b29f0a1cc
7 changed files with 24 additions and 9 deletions

View file

@ -1,3 +1,19 @@
2008-10-31 Stefan Kost <ensonic@users.sf.net>
* gst/gstpreset.c:
Use g_unlink instead of unlink.
* gst/gststructure.c:
Use glib type.
* gst/gstutils.c:
Add a FIXME:.
* gst/gsttaglist.c:
* gst/gsttypefind.c:
* gst/gstvalue.c:
Formatting & whitespaces.
2008-10-31 Stefan Kost <ensonic@users.sf.net> 2008-10-31 Stefan Kost <ensonic@users.sf.net>
* plugins/elements/gstidentity.c: * plugins/elements/gstidentity.c:

View file

@ -620,7 +620,7 @@ no_presets:
GST_WARNING_OBJECT (preset, GST_WARNING_OBJECT (preset,
"no presets, trying to unlink possibly existing preset file: '%s'", "no presets, trying to unlink possibly existing preset file: '%s'",
preset_path); preset_path);
unlink (preset_path); g_unlink (preset_path);
return FALSE; return FALSE;
} }
convert_failed: convert_failed:

View file

@ -1374,7 +1374,7 @@ gst_structure_get_fraction (const GstStructure * structure,
typedef struct _GstStructureAbbreviation typedef struct _GstStructureAbbreviation
{ {
char *type_name; gchar *type_name;
GType type; GType type;
} }
GstStructureAbbreviation; GstStructureAbbreviation;

View file

@ -811,9 +811,7 @@ gst_tag_list_add_valist (GstTagList * list, GstTagMergeMode mode,
const gchar * tag, va_list var_args) const gchar * tag, va_list var_args)
{ {
GstTagInfo *info; GstTagInfo *info;
GQuark quark; GQuark quark;
gchar *error = NULL; gchar *error = NULL;
g_return_if_fail (GST_IS_TAG_LIST (list)); g_return_if_fail (GST_IS_TAG_LIST (list));
@ -858,7 +856,6 @@ gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode,
const gchar * tag, va_list var_args) const gchar * tag, va_list var_args)
{ {
GstTagInfo *info; GstTagInfo *info;
GQuark quark; GQuark quark;
g_return_if_fail (GST_IS_TAG_LIST (list)); g_return_if_fail (GST_IS_TAG_LIST (list));

View file

@ -85,13 +85,14 @@ gst_type_find_register (GstPlugin * plugin, const gchar * name, guint rank,
factory = g_object_new (GST_TYPE_TYPE_FIND_FACTORY, 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)); g_assert (GST_IS_TYPE_FIND_FACTORY (factory));
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE (factory), name);
gst_plugin_feature_set_name (GST_PLUGIN_FEATURE (factory), name);
gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE (factory), rank); gst_plugin_feature_set_rank (GST_PLUGIN_FEATURE (factory), rank);
if (factory->extensions) if (factory->extensions)
g_strfreev (factory->extensions); g_strfreev (factory->extensions);
factory->extensions = g_strdupv (extensions); factory->extensions = g_strdupv (extensions);
gst_caps_replace (&factory->caps, (GstCaps *) possible_caps); gst_caps_replace (&factory->caps, (GstCaps *) possible_caps);
factory->function = func; factory->function = func;
factory->user_data = data; factory->user_data = data;

View file

@ -965,6 +965,7 @@ gst_element_get_compatible_pad (GstElement * element, GstPad * pad,
/* try to create a new one */ /* try to create a new one */
/* requesting is a little crazy, we need a template. Let's create one */ /* requesting is a little crazy, we need a template. Let's create one */
/* FIXME: why not gst_pad_get_pad_template (pad); */
templcaps = gst_pad_get_caps (pad); templcaps = gst_pad_get_caps (pad);
templ = gst_pad_template_new ((gchar *) GST_PAD_NAME (pad), templ = gst_pad_template_new ((gchar *) GST_PAD_NAME (pad),

View file

@ -2346,8 +2346,8 @@ gst_value_intersect_fraction_fraction_range (GValue * dest, const GValue * src1,
} }
static gboolean static gboolean
gst_value_intersect_fraction_range_fraction_range gst_value_intersect_fraction_range_fraction_range (GValue * dest,
(GValue * dest, const GValue * src1, const GValue * src2) const GValue * src1, const GValue * src2)
{ {
GValue *min; GValue *min;
GValue *max; GValue *max;