diff options
author | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-01 20:27:32 +0000 |
---|---|---|
committer | rtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-01 20:27:32 +0000 |
commit | 56d2da5af429840315d53c26aee476c7b8c2a2ce (patch) | |
tree | 33f279fba120ae49fca3e8470d04c80e3ffd2b98 /libmpdemux/demux_realaud.c | |
parent | cb1229a849ddcf8b8f26430512e03cbb0783a6fa (diff) | |
download | mpv-56d2da5af429840315d53c26aee476c7b8c2a2ce.tar.bz2 mpv-56d2da5af429840315d53c26aee476c7b8c2a2ce.tar.xz |
Warning fixes, patch by Dominik Mierzejewski
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10233 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_realaud.c')
-rw-r--r-- | libmpdemux/demux_realaud.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libmpdemux/demux_realaud.c b/libmpdemux/demux_realaud.c index 96469a8279..e68b3069a7 100644 --- a/libmpdemux/demux_realaud.c +++ b/libmpdemux/demux_realaud.c @@ -92,7 +92,7 @@ extern void print_wave_header(WAVEFORMATEX *h); -void demux_open_ra(demuxer_t* demuxer) +int demux_open_ra(demuxer_t* demuxer) { ra_priv_t* ra_priv = demuxer->priv; sh_audio_t *sh; @@ -101,7 +101,7 @@ void demux_open_ra(demuxer_t* demuxer) if ((ra_priv = (ra_priv_t *)malloc(sizeof(ra_priv_t))) == NULL) { mp_msg(MSGT_DEMUX, MSGL_ERR, "[RealAudio] Can't allocate memory for private data.\n"); - return NULL; + return 0; } memset(ra_priv, 0, sizeof(ra_priv_t)); @@ -116,7 +116,7 @@ void demux_open_ra(demuxer_t* demuxer) if ((ra_priv->version < 3) || (ra_priv->version > 4)) { mp_msg(MSGT_DEMUX,MSGL_WARN,"[RealAudio] ra version %d is not supported yet, please " "contact MPlayer developers\n", ra_priv->version); - return NULL; + return 0; } if (ra_priv->version == 3) { ra_priv->hdr_size = stream_read_word(demuxer->stream); @@ -255,6 +255,8 @@ void demux_open_ra(demuxer_t* demuxer) if(!ds_fill_buffer(demuxer->audio)) mp_msg(MSGT_DEMUXER,MSGL_INFO,"[RealAudio] No data.\n"); + + return 1; } |