Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3728bb0f
Commit
3728bb0f
authored
Jul 14, 2009
by
JP Dinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid infringing C std namespace the simplistic way.
parent
f7ea2a05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/access/rtsp/real.c
modules/access/rtsp/real.c
+6
-6
No files found.
modules/access/rtsp/real.c
View file @
3728bb0f
...
...
@@ -50,7 +50,7 @@ static const unsigned char xor_table[] = {
#define MAX(x,y) ((x>y) ? x : y)
/* XXX find a better place for this */
static
inline
void
*
_realloc
(
void
*
p
,
size_t
sz
)
static
inline
void
*
realloc_
(
void
*
p
,
size_t
sz
)
{
void
*
n
=
realloc
(
p
,
sz
);
if
(
!
n
)
...
...
@@ -697,27 +697,27 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
/* setup our streams */
real_calc_response_and_checksum
(
challenge2
,
checksum
,
challenge1
);
buf
=
_realloc
(
buf
,
strlen
(
challenge2
)
+
strlen
(
checksum
)
+
32
);
buf
=
realloc_
(
buf
,
strlen
(
challenge2
)
+
strlen
(
checksum
)
+
32
);
if
(
!
buf
)
goto
error
;
sprintf
(
buf
,
"RealChallenge2: %s, sd=%s"
,
challenge2
,
checksum
);
rtsp_schedule_field
(
rtsp_session
,
buf
);
buf
=
_realloc
(
buf
,
strlen
(
session_id
)
+
32
);
buf
=
realloc_
(
buf
,
strlen
(
session_id
)
+
32
);
if
(
!
buf
)
goto
error
;
sprintf
(
buf
,
"If-Match: %s"
,
session_id
);
rtsp_schedule_field
(
rtsp_session
,
buf
);
rtsp_schedule_field
(
rtsp_session
,
"Transport: x-pn-tng/tcp;mode=play,rtp/avp/tcp;unicast;mode=play"
);
buf
=
_realloc
(
buf
,
strlen
(
mrl
)
+
32
);
buf
=
realloc_
(
buf
,
strlen
(
mrl
)
+
32
);
if
(
!
buf
)
goto
error
;
sprintf
(
buf
,
"%s/streamid=0"
,
mrl
);
rtsp_request_setup
(
rtsp_session
,
buf
);
if
(
h
->
prop
->
num_streams
>
1
)
{
rtsp_schedule_field
(
rtsp_session
,
"Transport: x-pn-tng/tcp;mode=play,rtp/avp/tcp;unicast;mode=play"
);
buf
=
_realloc
(
buf
,
strlen
(
session_id
)
+
32
);
buf
=
realloc_
(
buf
,
strlen
(
session_id
)
+
32
);
if
(
!
buf
)
goto
error
;
sprintf
(
buf
,
"If-Match: %s"
,
session_id
);
rtsp_schedule_field
(
rtsp_session
,
buf
);
buf
=
_realloc
(
buf
,
strlen
(
mrl
)
+
32
);
buf
=
realloc_
(
buf
,
strlen
(
mrl
)
+
32
);
if
(
!
buf
)
goto
error
;
sprintf
(
buf
,
"%s/streamid=1"
,
mrl
);
rtsp_request_setup
(
rtsp_session
,
buf
);
...
...
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