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
430c52f4
Commit
430c52f4
authored
Dec 09, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Only try real module in case of real:// realrtsp:// or pnm://
parent
3ffe4a5c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
8 deletions
+16
-8
modules/access/rtsp/access.c
modules/access/rtsp/access.c
+8
-0
modules/access/rtsp/real.c
modules/access/rtsp/real.c
+1
-1
modules/access/rtsp/rtsp.c
modules/access/rtsp/rtsp.c
+7
-7
No files found.
modules/access/rtsp/access.c
View file @
430c52f4
...
...
@@ -150,6 +150,14 @@ static int Open( vlc_object_t *p_this )
char
*
psz_server
=
0
;
int
i_result
;
if
(
!
p_access
->
psz_access
||
(
strncmp
(
p_access
->
psz_access
,
"rtsp"
,
4
)
&&
strncmp
(
p_access
->
psz_access
,
"pnm"
,
3
)
&&
strncmp
(
p_access
->
psz_access
,
"realrtsp"
,
8
)
))
{
return
VLC_EGENERIC
;
}
p_access
->
pf_read
=
NULL
;
p_access
->
pf_block
=
BlockRead
;
p_access
->
pf_seek
=
Seek
;
...
...
modules/access/rtsp/real.c
View file @
430c52f4
...
...
@@ -673,7 +673,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_client_t *rtsp_session, int bandw
if
(
rtsp_read_data
(
rtsp_session
,
description
,
size
)
<=
0
)
goto
error
;
description
[
size
]
=
0
;
fprintf
(
stderr
,
"%s"
,
description
);
//
fprintf(stderr, "%s", description);
/* parse sdp (sdpplin) and create a header and a subscribe string */
subscribe
=
(
char
*
)
malloc
(
sizeof
(
char
)
*
256
);
...
...
modules/access/rtsp/rtsp.c
View file @
430c52f4
...
...
@@ -142,7 +142,7 @@ static int rtsp_get_status_code( rtsp_client_t *rtsp, const char *psz_string )
if
(
i_code
!=
200
)
{
fprintf
(
stderr
,
"librtsp: server responds: '%s'
\n
"
,
psz_string
);
//
fprintf( stderr, "librtsp: server responds: '%s'\n", psz_string );
}
return
i_code
;
...
...
@@ -249,15 +249,15 @@ static int rtsp_get_answers( rtsp_client_t *rtsp )
{
if
(
strcmp
(
buf
,
rtsp
->
p_private
->
session
)
)
{
fprintf
(
stderr
,
"rtsp: warning: setting NEW session: %s
\n
"
,
buf
);
//
fprintf( stderr,
//
"rtsp: warning: setting NEW session: %s\n", buf );
free
(
rtsp
->
p_private
->
session
);
rtsp
->
p_private
->
session
=
strdup
(
buf
);
}
}
else
{
fprintf
(
stderr
,
"setting session id to: %s
\n
"
,
buf
);
//
fprintf( stderr, "setting session id to: %s\n", buf );
rtsp
->
p_private
->
session
=
strdup
(
buf
);
}
free
(
buf
);
...
...
@@ -422,7 +422,7 @@ int rtsp_read_data( rtsp_client_t *rtsp, char *buffer, unsigned int size )
if
(
seq
<
0
)
{
fprintf
(
stderr
,
"warning: cseq not recognized!
\n
"
);
//
fprintf(stderr, "warning: cseq not recognized!\n");
seq
=
1
;
}
...
...
@@ -515,13 +515,13 @@ int rtsp_connect( rtsp_client_t *rtsp, const char *psz_mrl,
}
free
(
mrl_ptr
);
fprintf
(
stderr
,
"got mrl: %s %i %s
\n
"
,
s
->
host
,
s
->
port
,
s
->
path
);
//
fprintf( stderr, "got mrl: %s %i %s\n", s->host, s->port, s->path );
s
->
s
=
rtsp
->
pf_connect
(
rtsp
->
p_userdata
,
s
->
host
,
s
->
port
);
if
(
s
->
s
<
0
)
{
fprintf
(
stderr
,
"rtsp: failed to connect to '%s'
\n
"
,
s
->
host
);
//
fprintf(stderr, "rtsp: failed to connect to '%s'\n", s->host);
rtsp_close
(
rtsp
);
return
-
1
;
}
...
...
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