Commit f135a526 authored by Antoine Cellerier's avatar Antoine Cellerier

Remove tabs.

parent c1e7c9f2
...@@ -78,7 +78,7 @@ void input_SendEventLength( input_thread_t *p_input, mtime_t i_length ) ...@@ -78,7 +78,7 @@ void input_SendEventLength( input_thread_t *p_input, mtime_t i_length )
{ {
vlc_value_t val; vlc_value_t val;
/* FIXME ugly + what about meta change event ? */ /* FIXME ugly + what about meta change event ? */
if( var_GetTime( p_input, "length" ) == i_length ) if( var_GetTime( p_input, "length" ) == i_length )
return; return;
...@@ -104,20 +104,20 @@ void input_SendEventRate( input_thread_t *p_input, int i_rate ) ...@@ -104,20 +104,20 @@ void input_SendEventRate( input_thread_t *p_input, int i_rate )
} }
void input_SendEventAudioDelay( input_thread_t *p_input, mtime_t i_delay ) void input_SendEventAudioDelay( input_thread_t *p_input, mtime_t i_delay )
{ {
vlc_value_t val; vlc_value_t val;
val.i_time = i_delay; val.i_time = i_delay;
var_Change( p_input, "audio-delay", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "audio-delay", VLC_VAR_SETVALUE, &val, NULL );
Trigger( p_input, INPUT_EVENT_AUDIO_DELAY ); Trigger( p_input, INPUT_EVENT_AUDIO_DELAY );
} }
void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay ) void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay )
{ {
vlc_value_t val; vlc_value_t val;
val.i_time = i_delay; val.i_time = i_delay;
var_Change( p_input, "spu-delay", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "spu-delay", VLC_VAR_SETVALUE, &val, NULL );
Trigger( p_input, INPUT_EVENT_SUBTITLE_DELAY ); Trigger( p_input, INPUT_EVENT_SUBTITLE_DELAY );
} }
...@@ -125,33 +125,33 @@ void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay ) ...@@ -125,33 +125,33 @@ void input_SendEventSubtitleDelay( input_thread_t *p_input, mtime_t i_delay )
/* TODO and file name ? */ /* TODO and file name ? */
void input_SendEventRecord( input_thread_t *p_input, bool b_recording ) void input_SendEventRecord( input_thread_t *p_input, bool b_recording )
{ {
vlc_value_t val; vlc_value_t val;
val.b_bool = b_recording; val.b_bool = b_recording;
var_Change( p_input, "record", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "record", VLC_VAR_SETVALUE, &val, NULL );
Trigger( p_input, INPUT_EVENT_RECORD ); Trigger( p_input, INPUT_EVENT_RECORD );
} }
void input_SendEventTitle( input_thread_t *p_input, int i_title ) void input_SendEventTitle( input_thread_t *p_input, int i_title )
{ {
vlc_value_t val; vlc_value_t val;
val.i_int = i_title; val.i_int = i_title;
var_Change( p_input, "title", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "title", VLC_VAR_SETVALUE, &val, NULL );
input_ControlVarTitle( p_input, i_title ); input_ControlVarTitle( p_input, i_title );
Trigger( p_input, INPUT_EVENT_TITLE ); Trigger( p_input, INPUT_EVENT_TITLE );
} }
void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekpoint ) void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekpoint )
{ {
vlc_value_t val; vlc_value_t val;
/* "chapter" */ /* "chapter" */
val.i_int = i_seekpoint; val.i_int = i_seekpoint;
var_Change( p_input, "chapter", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "chapter", VLC_VAR_SETVALUE, &val, NULL );
/* "title %2i" */ /* "title %2i" */
char psz_title[10]; char psz_title[10];
...@@ -167,10 +167,10 @@ void input_SendEventSignal( input_thread_t *p_input, double f_quality, double f_ ...@@ -167,10 +167,10 @@ void input_SendEventSignal( input_thread_t *p_input, double f_quality, double f_
vlc_value_t val; vlc_value_t val;
val.f_float = f_quality; val.f_float = f_quality;
var_Change( p_input, "signal-quality", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "signal-quality", VLC_VAR_SETVALUE, &val, NULL );
val.f_float = f_strength; val.f_float = f_strength;
var_Change( p_input, "signal-strength", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "signal-strength", VLC_VAR_SETVALUE, &val, NULL );
Trigger( p_input, INPUT_EVENT_SIGNAL ); Trigger( p_input, INPUT_EVENT_SIGNAL );
} }
...@@ -190,7 +190,7 @@ void input_SendEventCache( input_thread_t *p_input, double f_level ) ...@@ -190,7 +190,7 @@ void input_SendEventCache( input_thread_t *p_input, double f_level )
vlc_value_t val; vlc_value_t val;
val.f_float = f_level; val.f_float = f_level;
var_Change( p_input, "cache", VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, "cache", VLC_VAR_SETVALUE, &val, NULL );
Trigger( p_input, INPUT_EVENT_CACHE ); Trigger( p_input, INPUT_EVENT_CACHE );
} }
...@@ -202,19 +202,19 @@ void input_SendEventMeta( input_thread_t *p_input ) ...@@ -202,19 +202,19 @@ void input_SendEventMeta( input_thread_t *p_input )
{ {
Trigger( p_input, INPUT_EVENT_ITEM_META ); Trigger( p_input, INPUT_EVENT_ITEM_META );
/* FIXME remove this ugliness ? */ /* FIXME remove this ugliness ? */
vlc_event_t event; vlc_event_t event;
event.type = vlc_InputItemMetaChanged; event.type = vlc_InputItemMetaChanged;
event.u.input_item_meta_changed.meta_type = vlc_meta_ArtworkURL; event.u.input_item_meta_changed.meta_type = vlc_meta_ArtworkURL;
vlc_event_send( &p_input->p->p_item->event_manager, &event ); vlc_event_send( &p_input->p->p_item->event_manager, &event );
} }
void input_SendEventMetaInfo( input_thread_t *p_input ) void input_SendEventMetaInfo( input_thread_t *p_input )
{ {
Trigger( p_input, INPUT_EVENT_ITEM_INFO ); Trigger( p_input, INPUT_EVENT_ITEM_INFO );
/* FIXME remove this ugliness */ /* FIXME remove this ugliness */
vlc_event_t event; vlc_event_t event;
event.type = vlc_InputItemInfoChanged; event.type = vlc_InputItemInfoChanged;
...@@ -225,7 +225,7 @@ void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name ) ...@@ -225,7 +225,7 @@ void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name )
{ {
Trigger( p_input, INPUT_EVENT_ITEM_NAME ); Trigger( p_input, INPUT_EVENT_ITEM_NAME );
/* FIXME remove this ugliness */ /* FIXME remove this ugliness */
vlc_event_t event; vlc_event_t event;
event.type = vlc_InputItemNameChanged; event.type = vlc_InputItemNameChanged;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment