summaryrefslogtreecommitdiffstats
path: root/stream/stream_radio.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-13 02:58:57 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-05-13 02:58:57 +0000
commit6e9cbdc10448203e7c8b2de41447442fcc9f7bae (patch)
tree0ed465592509105fdbeab27fc12ddbb2e3590aa5 /stream/stream_radio.c
parenteafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff)
downloadmpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.bz2
mpv-6e9cbdc10448203e7c8b2de41447442fcc9f7bae.tar.xz
whitespace cosmetics: Remove all trailing whitespace.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_radio.c')
-rw-r--r--stream/stream_radio.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/stream/stream_radio.c b/stream/stream_radio.c
index 9792fb142c..49d75090a9 100644
--- a/stream/stream_radio.c
+++ b/stream/stream_radio.c
@@ -654,17 +654,17 @@ static const radio_driver_t radio_driver_bsdbt848={
};
#endif /* CONFIG_RADIO_BSDBT848 */
-static inline int init_frac(radio_priv_t* priv){
+static inline int init_frac(radio_priv_t* priv){
return priv->driver->init_frac(priv);
}
-static inline int set_frequency(radio_priv_t* priv,float frequency){
+static inline int set_frequency(radio_priv_t* priv,float frequency){
if ((frequency<priv->rangelow)||(frequency>priv->rangehigh)){
mp_msg(MSGT_RADIO,MSGL_ERR,MSGTR_RADIO_WrongFreq,frequency);
return STREAM_ERROR;
}
if(priv->driver->set_frequency(priv,frequency)!=STREAM_OK)
return STREAM_ERROR;
-
+
#ifdef CONFIG_RADIO_CAPTURE
if(clear_buffer(priv)!=STREAM_OK){
mp_msg(MSGT_RADIO,MSGL_ERR,MSGTR_RADIO_ClearBufferFailed,strerror(errno));
@@ -673,13 +673,13 @@ static inline int set_frequency(radio_priv_t* priv,float frequency){
#endif
return STREAM_OK;
}
-static inline int get_frequency(radio_priv_t* priv,float* frequency){
+static inline int get_frequency(radio_priv_t* priv,float* frequency){
return priv->driver->get_frequency(priv,frequency);
}
-static inline void set_volume(radio_priv_t* priv,int volume){
+static inline void set_volume(radio_priv_t* priv,int volume){
priv->driver->set_volume(priv,volume);
}
-static inline int get_volume(radio_priv_t* priv,int* volume){
+static inline int get_volume(radio_priv_t* priv,int* volume){
return priv->driver->get_volume(priv,volume);
}
@@ -786,11 +786,11 @@ static int grab_audio_frame(radio_priv_t *priv, char *buffer, int len)
{
int i;
mp_msg(MSGT_RADIO, MSGL_DBG3, MSGTR_RADIO_BufferString,"grab_audio_frame",priv->audio_cnt,priv->audio_drop);
- /* Cache buffer must be filled by some audio packets when playing starts.
+ /* Cache buffer must be filled by some audio packets when playing starts.
Otherwise MPlayer will quit with EOF error.
Probably, there is need more carefull checking rather than simple 'for' loop
(something like timer or similar).
-
+
1000ms delay will happen only at first buffer filling. At next call function
just fills buffer until either buffer full or no data from driver available.
*/
@@ -937,10 +937,10 @@ int radio_set_freq(struct stream_st *stream, float frequency){
int radio_step_freq(struct stream_st *stream, float step_interval){
float frequency;
radio_priv_t* priv=(radio_priv_t*)stream->priv;
-
+
if (get_frequency(priv,&frequency)!=STREAM_OK)
return 0;
-
+
frequency+=step_interval;
if (frequency>priv->rangehigh)
frequency=priv->rangehigh;
@@ -1007,7 +1007,7 @@ int radio_set_channel(struct stream_st *stream, char *channel) {
if (*channel=='\0')
mp_msg(MSGT_RADIO,MSGL_ERR,MSGTR_RADIO_WrongChannelName,channel);
-
+
if (priv->radio_channel_list) {
channel_int = strtol(channel,&endptr,10);
tmp = priv->radio_channel_list;
@@ -1076,7 +1076,7 @@ static int fill_buffer_s(struct stream_st *s, char* buffer, int max_len){
/*
- order if significant!
+ order if significant!
when no driver explicitly specified first available will be used
*/
static const radio_driver_t* radio_drivers[]={
@@ -1136,7 +1136,7 @@ static int open_s(stream_t *stream,int mode, void* opts, int* file_format) {
priv->driver=radio_drivers[i];
}
mp_msg(MSGT_RADIO,MSGL_V,"\n");
-
+
if(priv->driver)
mp_msg(MSGT_RADIO, MSGL_INFO, priv->driver->info);
else{