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
4c0490cc
Commit
4c0490cc
authored
Aug 24, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really[1] implement non-aggregate PLAY
([1] VoD RTSP pretends to, but it does not, does it?)
parent
06abc54a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
10 deletions
+35
-10
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+35
-10
No files found.
modules/stream_out/rtsp.c
View file @
4c0490cc
...
...
@@ -141,9 +141,6 @@ struct rtsp_session_t
{
rtsp_stream_t
*
stream
;
/* is it in "play" state */
vlc_bool_t
b_playing
;
/* output (id-access) */
int
trackc
;
rtsp_strack_t
*
trackv
;
...
...
@@ -237,7 +234,6 @@ rtsp_session_t *RtspClientNew( rtsp_stream_t *rtsp, const char *name )
rtsp_session_t
*
s
=
malloc
(
sizeof
(
*
s
)
+
strlen
(
name
)
+
1
);
s
->
stream
=
rtsp
;
s
->
b_playing
=
VLC_FALSE
;
s
->
trackc
=
0
;
s
->
trackv
=
NULL
;
strcpy
(
s
->
name
,
name
);
...
...
@@ -339,13 +335,17 @@ static int RtspCallback( httpd_callback_sys_t *p_args,
vlc_mutex_lock
(
&
rtsp
->
lock
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
if
(
(
ses
!=
NULL
)
&&
!
ses
->
b_playing
)
if
(
ses
!=
NULL
)
{
/* FIXME */
ses
->
b_playing
=
VLC_TRUE
;
for
(
int
i
=
0
;
i
<
ses
->
trackc
;
i
++
)
rtp_add_sink
(
ses
->
trackv
[
i
].
id
,
ses
->
trackv
[
i
].
access
);
{
rtsp_strack_t
*
tr
=
ses
->
trackv
+
i
;
if
(
!
tr
->
playing
)
{
tr
->
playing
=
VLC_TRUE
;
rtp_add_sink
(
tr
->
id
,
tr
->
access
);
}
}
}
vlc_mutex_unlock
(
&
rtsp
->
lock
);
break
;
...
...
@@ -624,9 +624,34 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
break
;
}
case
HTTPD_MSG_PLAY
:
{
rtsp_session_t
*
ses
;
answer
->
i_status
=
200
;
psz_session
=
httpd_MsgGet
(
query
,
"Session"
);
vlc_mutex_lock
(
&
rtsp
->
lock
);
ses
=
RtspClientGet
(
rtsp
,
psz_session
);
if
(
ses
!=
NULL
)
{
for
(
int
i
=
0
;
i
<
ses
->
trackc
;
i
++
)
{
rtsp_strack_t
*
tr
=
ses
->
trackv
+
i
;
if
(
!
tr
->
playing
&&
(
tr
->
id
==
id
->
sout_id
)
)
{
tr
->
playing
=
VLC_TRUE
;
rtp_add_sink
(
tr
->
id
,
tr
->
access
);
}
}
}
vlc_mutex_unlock
(
&
rtsp
->
lock
);
break
;
}
case
HTTPD_MSG_PAUSE
:
answer
->
i_status
=
405
;
httpd_MsgAdd
(
answer
,
"Allow"
,
"SETUP, TEARDOWN"
);
httpd_MsgAdd
(
answer
,
"Allow"
,
"SETUP,
PLAY,
TEARDOWN"
);
break
;
case
HTTPD_MSG_TEARDOWN
:
...
...
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