Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ec37907e
Commit
ec37907e
authored
Feb 15, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use var_GetInteger when applicable.
parent
5010066b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+2
-2
modules/stream_out/select.c
modules/stream_out/select.c
+2
-2
No files found.
modules/stream_out/rtp.c
View file @
ec37907e
...
@@ -992,7 +992,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -992,7 +992,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
}
#ifdef HAVE_SRTP
#ifdef HAVE_SRTP
char
*
key
=
var_
Create
GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"key"
);
char
*
key
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"key"
);
if
(
key
)
if
(
key
)
{
{
id
->
srtp
=
srtp_create
(
SRTP_ENCR_AES_CM
,
SRTP_AUTH_HMAC_SHA1
,
10
,
id
->
srtp
=
srtp_create
(
SRTP_ENCR_AES_CM
,
SRTP_AUTH_HMAC_SHA1
,
10
,
...
@@ -1003,7 +1003,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -1003,7 +1003,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
goto
error
;
goto
error
;
}
}
char
*
salt
=
var_
Create
GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"salt"
);
char
*
salt
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"salt"
);
errno
=
srtp_setkeystring
(
id
->
srtp
,
key
,
salt
?
salt
:
""
);
errno
=
srtp_setkeystring
(
id
->
srtp
,
key
,
salt
?
salt
:
""
);
free
(
salt
);
free
(
salt
);
free
(
key
);
free
(
key
);
...
...
modules/stream_out/select.c
View file @
ec37907e
...
@@ -115,14 +115,14 @@ static int Open(vlc_object_t *p_this)
...
@@ -115,14 +115,14 @@ static int Open(vlc_object_t *p_this)
config_ChainParse
(
p_stream
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
config_ChainParse
(
p_stream
,
SOUT_CFG_PREFIX
,
ppsz_sout_options
,
p_stream
->
p_cfg
);
p_stream
->
p_cfg
);
int
port
=
var_
Create
GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"port"
);
int
port
=
var_GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"port"
);
p_sys
->
i_fd
=
net_ListenUDP1
(
VLC_OBJECT
(
p_stream
),
NULL
,
port
);
p_sys
->
i_fd
=
net_ListenUDP1
(
VLC_OBJECT
(
p_stream
),
NULL
,
port
);
if
(
p_sys
->
i_fd
<
0
)
if
(
p_sys
->
i_fd
<
0
)
{
{
free
(
p_sys
);
free
(
p_sys
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
p_sys
->
i_id_disable
=
var_
Create
GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"disable"
);
p_sys
->
i_id_disable
=
var_GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"disable"
);
p_sys
->
pp_es
=
NULL
;
p_sys
->
pp_es
=
NULL
;
p_sys
->
i_es_num
=
0
;
p_sys
->
i_es_num
=
0
;
...
...
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