fix usage of gst_caps2_replace()

Original commit message from CVS:
fix usage of gst_caps2_replace()
This commit is contained in:
David Schleef 2003-11-29 00:13:12 +00:00
parent 15e96d0be3
commit 35dd041316
5 changed files with 5 additions and 5 deletions

View file

@ -483,7 +483,7 @@ find_suggest (gpointer data, guint probability, const GstCaps2 *caps)
g_free (str); g_free (str);
if (((gint) probability) > entry->probability) { if (((gint) probability) > entry->probability) {
entry->probability = probability; entry->probability = probability;
gst_caps2_replace (&entry->caps, caps); gst_caps2_replace (&entry->caps, gst_caps2_copy (caps));
} }
} }
static gint static gint

View file

@ -483,7 +483,7 @@ find_suggest (gpointer data, guint probability, const GstCaps2 *caps)
g_free (str); g_free (str);
if (((gint) probability) > entry->probability) { if (((gint) probability) > entry->probability) {
entry->probability = probability; entry->probability = probability;
gst_caps2_replace (&entry->caps, caps); gst_caps2_replace (&entry->caps, gst_caps2_copy (caps));
} }
} }
static gint static gint

View file

@ -236,7 +236,7 @@ gst_type_find_register (GstPlugin *plugin, const gchar *name, guint rank,
g_strfreev (factory->extensions); g_strfreev (factory->extensions);
factory->extensions = g_strdupv (extensions); factory->extensions = g_strdupv (extensions);
gst_caps2_replace (&factory->caps, possible_caps); gst_caps2_replace (&factory->caps, gst_caps2_copy(possible_caps));
factory->function = func; factory->function = func;
factory->user_data = data; factory->user_data = data;

View file

@ -483,7 +483,7 @@ find_suggest (gpointer data, guint probability, const GstCaps2 *caps)
g_free (str); g_free (str);
if (((gint) probability) > entry->probability) { if (((gint) probability) > entry->probability) {
entry->probability = probability; entry->probability = probability;
gst_caps2_replace (&entry->caps, caps); gst_caps2_replace (&entry->caps, gst_caps2_copy (caps));
} }
} }
static gint static gint

View file

@ -483,7 +483,7 @@ find_suggest (gpointer data, guint probability, const GstCaps2 *caps)
g_free (str); g_free (str);
if (((gint) probability) > entry->probability) { if (((gint) probability) > entry->probability) {
entry->probability = probability; entry->probability = probability;
gst_caps2_replace (&entry->caps, caps); gst_caps2_replace (&entry->caps, gst_caps2_copy (caps));
} }
} }
static gint static gint