mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
gst/playback/gstplaybin.c (gen_audio_element): Use autoaudiosink as well if it is available. Fixes #316442.
Original commit message from CVS: 2005-11-14 Andy Wingo <wingo@pobox.com> * gst/playback/gstplaybin.c (gen_audio_element): Use autoaudiosink as well if it is available. Fixes #316442.
This commit is contained in:
parent
84d7f7462e
commit
65480fcc2d
2 changed files with 16 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-14 Andy Wingo <wingo@pobox.com>
|
||||||
|
|
||||||
|
* gst/playback/gstplaybin.c (gen_audio_element): Use autoaudiosink
|
||||||
|
as well if it is available. Fixes #316442.
|
||||||
|
|
||||||
2005-11-14 Michael Smith <msmith@fluendo.com>
|
2005-11-14 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* ext/ogg/gstoggmux.c: (gst_ogg_mux_clear), (gst_ogg_mux_init),
|
* ext/ogg/gstoggmux.c: (gst_ogg_mux_clear), (gst_ogg_mux_init),
|
||||||
|
|
|
@ -532,6 +532,17 @@ gen_audio_element (GstPlayBin * play_bin)
|
||||||
if (play_bin->audio_sink) {
|
if (play_bin->audio_sink) {
|
||||||
sink = play_bin->audio_sink;
|
sink = play_bin->audio_sink;
|
||||||
} else {
|
} else {
|
||||||
|
sink = gst_element_factory_make ("autoaudiiosink", "audiosink");
|
||||||
|
if (sink == NULL) {
|
||||||
|
sink = gst_element_factory_make ("alsasink", "audiosink");
|
||||||
|
}
|
||||||
|
/* FIXME: this warrants adding a CORE error category for missing
|
||||||
|
* elements/plugins */
|
||||||
|
if (sink == NULL) {
|
||||||
|
GST_ELEMENT_ERROR (play_bin, CORE, FAILED,
|
||||||
|
(_("Both autoaudiosink and alsasink elements are missing.")), (NULL));
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
sink = gst_element_factory_make ("alsasink", "audiosink");
|
sink = gst_element_factory_make ("alsasink", "audiosink");
|
||||||
if (sink == NULL) {
|
if (sink == NULL) {
|
||||||
g_warning ("could not create autoaudiosink element");
|
g_warning ("could not create autoaudiosink element");
|
||||||
|
|
Loading…
Reference in a new issue