mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 10:26:09 +00:00
Warning fixes, patch by Dominik Mierzejewski
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10233 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cb1229a849
commit
56d2da5af4
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
//#include <sys/socket.h>
|
||||
#include <sys/socket.h>
|
||||
//#include <netinet/in.h>
|
||||
//#include <netdb.h>
|
||||
#include <string.h>
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include "xbuffer.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user