Commit 5dafc001 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Modules: Remove tabs in source code

parent 9c9e6346
...@@ -165,7 +165,7 @@ static void Close( vlc_object_t * p_this ) ...@@ -165,7 +165,7 @@ static void Close( vlc_object_t * p_this )
access_sys_t *p_sys = p_access->p_sys; access_sys_t *p_sys = p_access->p_sys;
close ( p_sys->fd ); close ( p_sys->fd );
if( vlc_unlink( p_access->psz_filepath ) != 0 ) if( vlc_unlink( p_access->psz_filepath ) != 0 )
msg_Err( p_access, "Error deleting file %s, %s", msg_Err( p_access, "Error deleting file %s, %s",
p_access->psz_filepath, vlc_strerror_c(errno) ); p_access->psz_filepath, vlc_strerror_c(errno) );
free( p_sys ); free( p_sys );
......
...@@ -165,10 +165,10 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt) ...@@ -165,10 +165,10 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
NULL, NULL,
NULL); NULL);
// Set audio session to mediaplayback // Set audio session to mediaplayback
UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory),&sessionCategory); AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory),&sessionCategory);
AudioSessionSetActive(true); AudioSessionSetActive(true);
#endif #endif
p_aout->sys->b_started = true; p_aout->sys->b_started = true;
......
...@@ -77,26 +77,26 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt) ...@@ -77,26 +77,26 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
sio_initpar (&par); sio_initpar (&par);
switch (fmt->i_format) { switch (fmt->i_format) {
case VLC_CODEC_U8: case VLC_CODEC_U8:
par.bits = 8; par.bits = 8;
par.sig = 0; par.sig = 0;
break; break;
case VLC_CODEC_S16N: case VLC_CODEC_S16N:
par.bits = 16; par.bits = 16;
par.sig = 1; par.sig = 1;
par.le = SIO_LE_NATIVE; par.le = SIO_LE_NATIVE;
break; break;
case VLC_CODEC_S32N: case VLC_CODEC_S32N:
case VLC_CODEC_FL32: case VLC_CODEC_FL32:
case VLC_CODEC_FL64: case VLC_CODEC_FL64:
par.bits = 32; par.bits = 32;
par.sig = 1; par.sig = 1;
par.le = SIO_LE_NATIVE; par.le = SIO_LE_NATIVE;
break; break;
default: default:
/* use a common audio format */ /* use a common audio format */
par.bits = 16; par.bits = 16;
par.sig = 1; par.sig = 1;
par.le = SIO_LE_NATIVE; par.le = SIO_LE_NATIVE;
} }
par.pchan = aout_FormatNbChannels (fmt); par.pchan = aout_FormatNbChannels (fmt);
par.rate = fmt->i_rate; par.rate = fmt->i_rate;
...@@ -124,7 +124,7 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt) ...@@ -124,7 +124,7 @@ static int Start (audio_output_t *aout, audio_sample_format_t *restrict fmt)
if (par.bps > 1 && par.le != SIO_LE_NATIVE) if (par.bps > 1 && par.le != SIO_LE_NATIVE)
{ {
msg_Err (aout, "unsupported audio sample format (%s endian)", msg_Err (aout, "unsupported audio sample format (%s endian)",
par.le ? "little" : "big"); par.le ? "little" : "big");
goto error; goto error;
} }
switch (par.bits) switch (par.bits)
...@@ -221,7 +221,7 @@ static int TimeGet (audio_output_t *aout, mtime_t *restrict delay) ...@@ -221,7 +221,7 @@ static int TimeGet (audio_output_t *aout, mtime_t *restrict delay)
aout_sys_t *sys = aout->sys; aout_sys_t *sys = aout->sys;
if (!sys->started) if (!sys->started)
return -1; return -1;
*delay = (mtime_t)sys->delay * CLOCK_FREQ / sys->rate; *delay = (mtime_t)sys->delay * CLOCK_FREQ / sys->rate;
return 0; return 0;
} }
...@@ -263,9 +263,9 @@ static int VolumeSet (audio_output_t *aout, float fvol) ...@@ -263,9 +263,9 @@ static int VolumeSet (audio_output_t *aout, float fvol)
unsigned volume; unsigned volume;
if (fvol < 0) if (fvol < 0)
fvol = 0; fvol = 0;
if (fvol > 1) if (fvol > 1)
fvol = 1; fvol = 1;
volume = lroundf (fvol * SIO_MAXVOL); volume = lroundf (fvol * SIO_MAXVOL);
if (!sys->mute && !sio_setvol (sys->hdl, volume)) if (!sys->mute && !sio_setvol (sys->hdl, volume))
return -1; return -1;
......
...@@ -657,7 +657,7 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h ) ...@@ -657,7 +657,7 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h )
*w = p_sys->ki.original_canvas_width; *w = p_sys->ki.original_canvas_width;
*h = p_sys->ki.original_canvas_height; *h = p_sys->ki.original_canvas_height;
msg_Dbg( p_dec, "original canvas %zu %zu", msg_Dbg( p_dec, "original canvas %zu %zu",
p_sys->ki.original_canvas_width, p_sys->ki.original_canvas_height ); p_sys->ki.original_canvas_width, p_sys->ki.original_canvas_height );
} }
else else
{ {
......
...@@ -1024,7 +1024,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd, ...@@ -1024,7 +1024,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
} }
else if ( !strcmp( psz_cmd, "frame" ) ) else if ( !strcmp( psz_cmd, "frame" ) )
{ {
var_TriggerCallback( p_input, "frame-next" ); var_TriggerCallback( p_input, "frame-next" );
i_error = VLC_SUCCESS; i_error = VLC_SUCCESS;
} }
else if( !strcmp( psz_cmd, "chapter" ) || else if( !strcmp( psz_cmd, "chapter" ) ||
......
...@@ -322,14 +322,14 @@ static int Open( vlc_object_t * p_this ) ...@@ -322,14 +322,14 @@ static int Open( vlc_object_t * p_this )
char* boundary = strstr( content_type, "boundary=" ); char* boundary = strstr( content_type, "boundary=" );
if( boundary ) if( boundary )
{ {
boundary += strlen( "boundary=" ); boundary += strlen( "boundary=" );
size_t len = strlen( boundary ); size_t len = strlen( boundary );
if( len > 2 && boundary[0] == '"' if( len > 2 && boundary[0] == '"'
&& boundary[len-1] == '"' ) && boundary[len-1] == '"' )
{ {
boundary[len-1] = '\0'; boundary[len-1] = '\0';
boundary++; boundary++;
} }
p_sys->psz_separator = strdup( boundary ); p_sys->psz_separator = strdup( boundary );
if( !p_sys->psz_separator ) if( !p_sys->psz_separator )
{ {
......
...@@ -169,7 +169,7 @@ static int vlclua_playlist_move( lua_State * L ) ...@@ -169,7 +169,7 @@ static int vlclua_playlist_move( lua_State * L )
if( p_target->i_children != -1 ) if( p_target->i_children != -1 )
i_ret = playlist_TreeMove( p_playlist, p_item, p_target, 0 ); i_ret = playlist_TreeMove( p_playlist, p_item, p_target, 0 );
else else
i_ret = playlist_TreeMove( p_playlist, p_item, p_target->p_parent, p_target->i_id - p_target->p_parent->pp_children[0]->i_id + 1 ); i_ret = playlist_TreeMove( p_playlist, p_item, p_target->p_parent, p_target->i_id - p_target->p_parent->pp_children[0]->i_id + 1 );
PL_UNLOCK; PL_UNLOCK;
return vlclua_push_ret( L, i_ret ); return vlclua_push_ret( L, i_ret );
} }
......
...@@ -43,10 +43,11 @@ ...@@ -43,10 +43,11 @@
#include <lua.h> /* Low level lua C API */ #include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */ #include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */ #include <lualib.h> /* Lua libs */
#if LUA_VERSION_NUM >= 502 #if LUA_VERSION_NUM >= 502
#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ) # define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
#define lua_objlen(L,idx) lua_rawlen(L,idx) # define lua_objlen(L,idx) lua_rawlen(L,idx)
#define lua_strlen(L,idx) lua_rawlen(L,idx) # define lua_strlen(L,idx) lua_rawlen(L,idx)
#endif #endif
/***************************************************************************** /*****************************************************************************
......
...@@ -47,8 +47,8 @@ static int OpenClient (vlc_tls_creds_t *); ...@@ -47,8 +47,8 @@ static int OpenClient (vlc_tls_creds_t *);
static void CloseClient (vlc_tls_creds_t *); static void CloseClient (vlc_tls_creds_t *);
#if !TARGET_OS_IPHONE #if !TARGET_OS_IPHONE
static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key); static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key);
static void CloseServer (vlc_tls_creds_t *); static void CloseServer (vlc_tls_creds_t *);
#endif #endif
vlc_module_begin () vlc_module_begin ()
......
...@@ -50,11 +50,11 @@ static const uint64_t mmx_mask_fc = 0xfcfcfcfcfcfcfcfcULL; /* -- as %13 */ ...@@ -50,11 +50,11 @@ static const uint64_t mmx_mask_fc = 0xfcfcfcfcfcfcfcfcULL; /* -- as %13 */
: \ : \
: "r" (p_y), "r" (p_u), \ : "r" (p_y), "r" (p_u), \
"r" (p_v), "r" (p_buffer), \ "r" (p_v), "r" (p_buffer), \
"m" (mmx_80w), "m" (mmx_10w), \ "m" (mmx_80w), "m" (mmx_10w), \
"m" (mmx_00ffw), "m" (mmx_Y_coeff), \ "m" (mmx_00ffw), "m" (mmx_Y_coeff), \
"m" (mmx_U_green), "m" (mmx_U_blue), \ "m" (mmx_U_green), "m" (mmx_U_blue), \
"m" (mmx_V_red), "m" (mmx_V_green), \ "m" (mmx_V_red), "m" (mmx_V_green), \
"m" (mmx_mask_f8), "m" (mmx_mask_fc) \ "m" (mmx_mask_f8), "m" (mmx_mask_fc) \
: "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7" ); \ : "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7" ); \
} while(0) } while(0)
......
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