mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
fix instances in core before making this an error
Original commit message from CVS: fix instances in core before making this an error
This commit is contained in:
parent
d664509a68
commit
2ed6c06492
1 changed files with 5 additions and 4 deletions
|
@ -790,8 +790,9 @@ gst_plugin_add_feature (GstPlugin * plugin, GstPluginFeature * feature)
|
|||
{
|
||||
GstPluginFeature *oldfeature;
|
||||
|
||||
/* FIXME 0.9: get reference counting somewhat right in here, GstPluginFeatures
|
||||
* should probably be GstObjects that are sinked when adding them to a plugin */
|
||||
/* FIXME 0.9: get reference counting somewhat right in here,
|
||||
* GstPluginFeatures should probably be GstObjects that are sinked when
|
||||
* adding them to a plugin */
|
||||
g_return_if_fail (plugin != NULL);
|
||||
g_return_if_fail (GST_IS_PLUGIN_FEATURE (feature));
|
||||
g_return_if_fail (feature != NULL);
|
||||
|
@ -800,11 +801,11 @@ gst_plugin_add_feature (GstPlugin * plugin, GstPluginFeature * feature)
|
|||
GST_PLUGIN_FEATURE_NAME (feature), G_OBJECT_TYPE (feature));
|
||||
|
||||
if (oldfeature == feature) {
|
||||
GST_ERROR ("feature %s has already been added",
|
||||
GST_WARNING ("feature %s has already been added",
|
||||
GST_PLUGIN_FEATURE_NAME (feature));
|
||||
/* g_object_unref (feature); */
|
||||
} else if (oldfeature) {
|
||||
GST_ERROR ("feature %s already present in plugin",
|
||||
GST_WARNING ("feature %s already present in plugin",
|
||||
GST_PLUGIN_FEATURE_NAME (feature));
|
||||
/* g_object_unref (feature); */
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue