mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
gst/playback/gstplaybin.c (gen_audio_element)
Original commit message from CVS: 2005-11-21 Andy Wingo <wingo@pobox.com> * gst/playback/gstplaybin.c (gen_audio_element) (gen_video_element): Use the new MISSING_PLUGIN core error category.
This commit is contained in:
parent
137c23468e
commit
f3bafece36
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
|||
2005-11-21 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* gst/playback/gstplaybin.c (gen_audio_element)
|
||||
(gen_video_element): Use the new MISSING_PLUGIN core error
|
||||
category.
|
||||
|
||||
* ext/vorbis/vorbisdec.c (vorbis_dec_sink_event):
|
||||
* gst/videorate/gstvideorate.c (gst_videorate_event):
|
||||
* ext/theora/theoradec.c (theora_dec_sink_event):
|
||||
|
|
|
@ -407,7 +407,7 @@ gen_video_element (GstPlayBin * play_bin)
|
|||
/* FIXME: this warrants adding a CORE error category for missing
|
||||
* elements/plugins */
|
||||
if (sink == NULL) {
|
||||
GST_ELEMENT_ERROR (play_bin, CORE, FAILED,
|
||||
GST_ELEMENT_ERROR (play_bin, CORE, MISSING_PLUGIN,
|
||||
(_("Both autovideosink and xvimagesink elements are missing.")),
|
||||
(NULL));
|
||||
return NULL;
|
||||
|
@ -536,10 +536,8 @@ gen_audio_element (GstPlayBin * play_bin)
|
|||
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,
|
||||
GST_ELEMENT_ERROR (play_bin, CORE, MISSING_PLUGIN,
|
||||
(_("Both autoaudiosink and alsasink elements are missing.")), (NULL));
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue