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
24d9ad62
Commit
24d9ad62
authored
Feb 04, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fprintf die die
parent
d2858830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
modules/misc/rtsp.c
modules/misc/rtsp.c
+12
-6
No files found.
modules/misc/rtsp.c
View file @
24d9ad62
...
...
@@ -261,6 +261,12 @@ static vod_media_t *MediaNew( vod_t *p_vod, const char *psz_name,
vod_media_t
*
p_media
=
malloc
(
sizeof
(
vod_media_t
)
);
int
i
;
if
(
!
p_media
)
{
msg_Err
(
p_vod
,
"not enough memory"
);
return
NULL
;
}
memset
(
p_media
,
0
,
sizeof
(
vod_media_t
)
);
p_media
->
es
=
0
;
p_media
->
psz_mux
=
0
;
...
...
@@ -276,7 +282,7 @@ static vod_media_t *MediaNew( vod_t *p_vod, const char *psz_name,
msg_Err
(
p_vod
,
"cannot create http url (%s)"
,
p_media
->
psz_rtsp_path
);
free
(
p_media
->
psz_rtsp_path
);
free
(
p_media
);
return
0
;
return
NULL
;
}
msg_Dbg
(
p_vod
,
"created rtsp url: %s"
,
p_media
->
psz_rtsp_path
);
...
...
@@ -619,7 +625,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if
(
answer
==
NULL
||
query
==
NULL
)
return
VLC_SUCCESS
;
fprintf
(
stderr
,
"RtspCallback query: type=%d
\n
"
,
query
->
i_type
);
msg_Info
(
p_vod
,
"RtspCallback query: type=%d
\n
"
,
query
->
i_type
);
answer
->
i_proto
=
HTTPD_PROTO_RTSP
;
answer
->
i_version
=
query
->
i_version
;
...
...
@@ -772,7 +778,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if
(
answer
==
NULL
||
query
==
NULL
)
return
VLC_SUCCESS
;
fprintf
(
stderr
,
"RtspCallback query: type=%d
\n
"
,
query
->
i_type
);
msg_Info
(
p_vod
,
"RtspCallback query: type=%d
\n
"
,
query
->
i_type
);
answer
->
i_proto
=
HTTPD_PROTO_RTSP
;
answer
->
i_version
=
query
->
i_version
;
...
...
@@ -782,7 +788,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
{
case
HTTPD_MSG_SETUP
:
psz_transport
=
httpd_MsgGet
(
query
,
"Transport"
);
fprintf
(
stderr
,
"HTTPD_MSG_SETUP: transport=%s
\n
"
,
psz_transport
);
msg_Dbg
(
p_vod
,
"HTTPD_MSG_SETUP: transport=%s
\n
"
,
psz_transport
);
if
(
strstr
(
psz_transport
,
"unicast"
)
&&
strstr
(
psz_transport
,
"client_port="
)
)
...
...
@@ -802,7 +808,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
break
;
}
fprintf
(
stderr
,
"HTTPD_MSG_SETUP: unicast ip=%s port=%d
\n
"
,
msg_Dbg
(
p_vod
,
"HTTPD_MSG_SETUP: unicast ip=%s port=%d
\n
"
,
ip
,
i_port
);
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
...
...
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