summaryrefslogtreecommitdiff
path: root/src/audio_out/audio_file_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_out/audio_file_out.c')
-rw-r--r--src/audio_out/audio_file_out.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio_out/audio_file_out.c b/src/audio_out/audio_file_out.c
index 32ab2e0ae..e741523b2 100644
--- a/src/audio_out/audio_file_out.c
+++ b/src/audio_out/audio_file_out.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: audio_file_out.c,v 1.7 2006/07/10 22:08:12 dgp85 Exp $
+ * $Id: audio_file_out.c,v 1.8 2006/07/16 16:18:09 dsalt Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -326,6 +326,8 @@ static ao_driver_t *open_plugin (audio_driver_class_t *class_gen,
lprintf ("open_plugin called\n");
this = (file_driver_t *) xine_xmalloc (sizeof (file_driver_t));
+ if (!this)
+ return NULL;
this->xine = class->xine;
this->capabilities = AO_CAP_MODE_MONO | AO_CAP_MODE_STEREO;
@@ -376,6 +378,8 @@ static void *init_class (xine_t *xine, void *data) {
lprintf ("init class\n");
this = (file_class_t *) xine_xmalloc (sizeof (file_class_t));
+ if (!this)
+ return NULL;
this->driver_class.open_plugin = open_plugin;
this->driver_class.get_identifier = get_identifier;