diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-09-13 01:22:59 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-09-13 01:22:59 +0000 |
commit | 96fc83aeacef995433db8ee4794227d9b3d2ca6b (patch) | |
tree | bba38e3589d56522ac6ab4b9edc37d20837f76d2 /sys/oss/gstossaudio.c | |
parent | adda650f237852748a9f1070b7923f0df194c3d6 (diff) |
Interface implementation example: OSS mixer. Also osscommon->osselement so it can be loaded without being a source/si...
Original commit message from CVS:
Interface implementation example: OSS mixer. Also osscommon->osselement so it can be loaded without being a source/sink (for a stand-alone mixer)
Diffstat (limited to 'sys/oss/gstossaudio.c')
-rw-r--r-- | sys/oss/gstossaudio.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/sys/oss/gstossaudio.c b/sys/oss/gstossaudio.c index e1d54c3a..8c9421a7 100644 --- a/sys/oss/gstossaudio.c +++ b/sys/oss/gstossaudio.c @@ -17,7 +17,11 @@ * Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +#include "gstosselement.h" #include "gstosssink.h" #include "gstosssrc.h" #include "gstossgst.h" @@ -25,19 +29,16 @@ static gboolean plugin_init (GModule *module, GstPlugin *plugin) { - gboolean ret; - if (!gst_library_load ("gstaudio")) return FALSE; - ret = gst_osssink_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); - - ret = gst_osssrc_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); - - ret = gst_ossgst_factory_init (plugin); - g_return_val_if_fail (ret == TRUE, FALSE); + if (!gst_osselement_factory_init (plugin) || + !gst_osssrc_factory_init (plugin) || + !gst_osssink_factory_init (plugin) || + !gst_ossgst_factory_init (plugin)) { + g_warning ("Failed to register OSS elements!"); + return FALSE; + } return TRUE; } |