Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3d274a15
Commit
3d274a15
authored
May 20, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare the right datatypes
parent
2cecfed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/access/rtsp/rtsp.c
modules/access/rtsp/rtsp.c
+6
-6
No files found.
modules/access/rtsp/rtsp.c
View file @
3d274a15
...
@@ -89,7 +89,7 @@ static char *rtsp_get( rtsp_client_t *rtsp )
...
@@ -89,7 +89,7 @@ static char *rtsp_get( rtsp_client_t *rtsp )
char
*
psz_buffer
=
malloc
(
BUF_SIZE
);
char
*
psz_buffer
=
malloc
(
BUF_SIZE
);
char
*
psz_string
=
NULL
;
char
*
psz_string
=
NULL
;
if
(
rtsp
->
pf_read_line
(
rtsp
->
p_userdata
,
psz_buffer
,
BUF_SIZE
)
>=
0
)
if
(
rtsp
->
pf_read_line
(
rtsp
->
p_userdata
,
psz_buffer
,
(
unsigned
int
)
BUF_SIZE
)
>=
0
)
{
{
//printf( "<< '%s'\n", psz_buffer );
//printf( "<< '%s'\n", psz_buffer );
psz_string
=
strdup
(
psz_buffer
);
psz_string
=
strdup
(
psz_buffer
);
...
@@ -106,7 +106,7 @@ static char *rtsp_get( rtsp_client_t *rtsp )
...
@@ -106,7 +106,7 @@ static char *rtsp_get( rtsp_client_t *rtsp )
static
int
rtsp_put
(
rtsp_client_t
*
rtsp
,
const
char
*
psz_string
)
static
int
rtsp_put
(
rtsp_client_t
*
rtsp
,
const
char
*
psz_string
)
{
{
int
i_buffer
=
strlen
(
psz_string
);
unsigned
int
i_buffer
=
strlen
(
psz_string
);
char
*
psz_buffer
=
malloc
(
i_buffer
+
3
);
char
*
psz_buffer
=
malloc
(
i_buffer
+
3
);
int
i_ret
;
int
i_ret
;
...
@@ -399,7 +399,7 @@ int rtsp_read_data( rtsp_client_t *rtsp, char *buffer, unsigned int size )
...
@@ -399,7 +399,7 @@ int rtsp_read_data( rtsp_client_t *rtsp, char *buffer, unsigned int size )
if
(
size
>=
4
)
if
(
size
>=
4
)
{
{
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
buffer
,
4
);
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
buffer
,
(
unsigned
int
)
4
);
if
(
i
<
4
)
return
i
;
if
(
i
<
4
)
return
i
;
if
(
buffer
[
0
]
==
'S'
&&
buffer
[
1
]
==
'E'
&&
buffer
[
2
]
==
'T'
&&
if
(
buffer
[
0
]
==
'S'
&&
buffer
[
1
]
==
'E'
&&
buffer
[
2
]
==
'T'
&&
...
@@ -433,15 +433,15 @@ int rtsp_read_data( rtsp_client_t *rtsp, char *buffer, unsigned int size )
...
@@ -433,15 +433,15 @@ int rtsp_read_data( rtsp_client_t *rtsp, char *buffer, unsigned int size )
rtsp_put
(
rtsp
,
rest
);
rtsp_put
(
rtsp
,
rest
);
rtsp_put
(
rtsp
,
""
);
rtsp_put
(
rtsp
,
""
);
free
(
rest
);
free
(
rest
);
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
buffer
,
size
);
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
(
unsigned
char
*
)
buffer
,
size
);
}
}
else
else
{
{
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
buffer
+
4
,
size
-
4
);
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
(
unsigned
char
*
)
buffer
+
4
,
size
-
4
);
i
+=
4
;
i
+=
4
;
}
}
}
}
else
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
buffer
,
size
);
else
i
=
rtsp
->
pf_read
(
rtsp
->
p_userdata
,
(
unsigned
char
*
)
buffer
,
size
);
//fprintf( stderr, "<< %d of %d bytes\n", i, size );
//fprintf( stderr, "<< %d of %d bytes\n", i, size );
...
...
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