gst-libs/gst/audio/mixerutils.c: Make order in which elements are tried more determinable.
Original commit message from CVS: * gst-libs/gst/audio/mixerutils.c: (element_factory_rank_compare_func): Make order in which elements are tried more determinable.
This commit is contained in:
parent
6f9edeac69
commit
043c6d91df
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-20 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst-libs/gst/audio/mixerutils.c:
|
||||||
|
(element_factory_rank_compare_func):
|
||||||
|
Make order in which elements are tried more determinable.
|
||||||
|
|
||||||
2006-02-20 Julien MOUTTE <julien@moutte.net>
|
2006-02-20 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* gst/playback/gstdecodebin.c: (get_our_ghost_pad),
|
* gst/playback/gstdecodebin.c: (get_our_ghost_pad),
|
||||||
|
@ -176,6 +176,14 @@ element_factory_rank_compare_func (gconstpointer a, gconstpointer b)
|
|||||||
gint rank_a = gst_plugin_feature_get_rank (GST_PLUGIN_FEATURE (a));
|
gint rank_a = gst_plugin_feature_get_rank (GST_PLUGIN_FEATURE (a));
|
||||||
gint rank_b = gst_plugin_feature_get_rank (GST_PLUGIN_FEATURE (b));
|
gint rank_b = gst_plugin_feature_get_rank (GST_PLUGIN_FEATURE (b));
|
||||||
|
|
||||||
|
/* make order chosen in the end more determinable */
|
||||||
|
if (rank_a == rank_b) {
|
||||||
|
const gchar *name_a = GST_PLUGIN_FEATURE_NAME (GST_PLUGIN_FEATURE (a));
|
||||||
|
const gchar *name_b = GST_PLUGIN_FEATURE_NAME (GST_PLUGIN_FEATURE (b));
|
||||||
|
|
||||||
|
return g_ascii_strcasecmp (name_a, name_b);
|
||||||
|
}
|
||||||
|
|
||||||
return rank_b - rank_a;
|
return rank_b - rank_a;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user