Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
6c00c0fc
Commit
6c00c0fc
authored
Jun 01, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vod_rtsp: cosmetics
Identation
parent
5e57a6a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
modules/misc/rtsp.c
modules/misc/rtsp.c
+24
-24
No files found.
modules/misc/rtsp.c
View file @
6c00c0fc
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment