Mercurial > mplayer.hg
view stream/stream_radio.h @ 21776:f43ed7e03b06
Fix double free of *http_hdr at server error.
In http.c::http_streaming_start() *http_hdr is allocated
then assigned to stream->streaming_ctrl->data
if server returns error *http_hdr is freed before function returns.
However the copy in ->data remains and is
later freed (again) by network.c::streaming_ctrl_free().
author | iive |
---|---|
date | Sat, 30 Dec 2006 13:23:39 +0000 |
parents | c549c2de24ce |
children | 3f0d00abc073 |
line wrap: on
line source
#ifndef _H_STREAM_RADIO_ #define _H_STREAM_RADIO_ #ifdef USE_RADIO #define RADIO_CHANNEL_LOWER 1 #define RADIO_CHANNEL_HIGHER 2 extern char *radio_param_device; extern char *radio_param_driver; #ifdef RADIO_BSDBT848_HDR extern float radio_param_freq_min; extern float radio_param_freq_max; #endif extern char **radio_param_channels; extern int radio_param_volume; extern char* radio_param_adevice; extern int radio_param_arate; extern int radio_param_achannels; int radio_set_freq(struct stream_st *stream, float freq); int radio_get_freq(struct stream_st *stream, float* freq); char* radio_get_channel_name(struct stream_st *stream); int radio_set_channel(struct stream_st *stream, char *channel); int radio_step_channel(struct stream_st *stream, int direction); int radio_step_freq(struct stream_st *stream, float step_interval); #endif #endif