[vlc-commits] commit: vod_rtsp: cosmetics (Pierre Ynard )
git at videolan.org
git at videolan.org
Tue Jun 1 06:02:28 CEST 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 1 06:02:02 2010 +0200| [6c00c0fc475211cb27e18d33eb4cdbc3509d5eaf] | committer: Pierre Ynard
vod_rtsp: cosmetics
Identation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6c00c0fc475211cb27e18d33eb4cdbc3509d5eaf
---
modules/misc/rtsp.c | 48 ++++++++++++++++++++++++------------------------
1 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index 9a60a71..849e6f1 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -344,13 +344,13 @@ static void Close( vlc_object_t * p_this )
while( block_FifoCount( p_sys->p_fifo_cmd ) > 0 )
{
- p_block_cmd = block_FifoGet( p_sys->p_fifo_cmd );
- memcpy( &cmd, p_block_cmd->p_buffer, sizeof(cmd) );
- block_Release( p_block_cmd );
- if ( cmd.i_type == RTSP_CMD_TYPE_DEL )
- MediaDel(p_vod, cmd.p_media);
- free( cmd.psz_session );
- free( cmd.psz_arg );
+ p_block_cmd = block_FifoGet( p_sys->p_fifo_cmd );
+ memcpy( &cmd, p_block_cmd->p_buffer, sizeof(cmd) );
+ block_Release( p_block_cmd );
+ if ( cmd.i_type == RTSP_CMD_TYPE_DEL )
+ MediaDel(p_vod, cmd.p_media);
+ free( cmd.psz_session );
+ free( cmd.psz_arg );
}
block_FifoRelease( p_sys->p_fifo_cmd );
@@ -921,23 +921,23 @@ static void RtspClientDel( vod_media_t *p_media, rtsp_client_t *p_rtsp )
static float ParseNPT (const char *str)
{
- locale_t loc = newlocale (LC_NUMERIC_MASK, "C", NULL);
- locale_t oldloc = uselocale (loc);
- unsigned hour, min;
- float sec;
-
- if (sscanf (str, "%u:%u:%f", &hour, &min, &sec) == 3)
- sec += ((hour * 60) + min) * 60;
- else
- if (sscanf (str, "%f", &sec) != 1)
- sec = 0.;
-
- if (loc != (locale_t)0)
- {
- uselocale (oldloc);
- freelocale (loc);
- }
- return sec;
+ locale_t loc = newlocale (LC_NUMERIC_MASK, "C", NULL);
+ locale_t oldloc = uselocale (loc);
+ unsigned hour, min;
+ float sec;
+
+ if (sscanf (str, "%u:%u:%f", &hour, &min, &sec) == 3)
+ sec += ((hour * 60) + min) * 60;
+ else
+ if (sscanf (str, "%f", &sec) != 1)
+ sec = 0.;
+
+ if (loc != (locale_t)0)
+ {
+ uselocale (oldloc);
+ freelocale (loc);
+ }
+ return sec;
}
More information about the vlc-commits
mailing list