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:
Andy Wingo 2005-11-21 18:44:02 +00:00
parent 137c23468e
commit f3bafece36
2 changed files with 6 additions and 4 deletions

View file

@ -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):

View file

@ -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;
}