pulse: Increase ranks to PRIMARY + 10
So that pulsesrc/pulsesink get chosen over other possible PRIMARY src/sinks by autoaudiosink. Presumably, if pulse is available, it is always preferred over another src/sink. Fixes: #647540.
This commit is contained in:
parent
32aa80cda8
commit
f69dcaab58
@ -41,11 +41,11 @@ plugin_init (GstPlugin * plugin)
|
|||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "pulsesink", GST_RANK_PRIMARY,
|
if (!gst_element_register (plugin, "pulsesink", GST_RANK_PRIMARY + 10,
|
||||||
GST_TYPE_PULSESINK))
|
GST_TYPE_PULSESINK))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "pulsesrc", GST_RANK_PRIMARY,
|
if (!gst_element_register (plugin, "pulsesrc", GST_RANK_PRIMARY + 10,
|
||||||
GST_TYPE_PULSESRC))
|
GST_TYPE_PULSESRC))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user