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
48b9ba2f
Commit
48b9ba2f
authored
Dec 17, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vod: playing/seeking improvement
parent
7f761a39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
modules/stream_out/rtsp.c
modules/stream_out/rtsp.c
+13
-14
No files found.
modules/stream_out/rtsp.c
View file @
48b9ba2f
...
...
@@ -186,7 +186,6 @@ struct rtsp_session_t
rtsp_stream_t
*
stream
;
uint64_t
id
;
mtime_t
last_seen
;
/* for timeouts */
bool
vod_started
;
/* true if the VoD media instance was created */
/* output (id-access) */
int
trackc
;
...
...
@@ -353,7 +352,6 @@ rtsp_session_t *RtspClientNew( rtsp_stream_t *rtsp )
s
->
stream
=
rtsp
;
vlc_rand_bytes
(
&
s
->
id
,
sizeof
(
s
->
id
));
s
->
vod_started
=
false
;
s
->
trackc
=
0
;
s
->
trackv
=
NULL
;
...
...
@@ -1024,21 +1022,22 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
if
(
vod
)
{
/* TODO: fix that crap, this is barely RTSP */
if
(
!
ses
->
vod_started
)
{
/* We want to seek before unpausing, but it won't
* work if the instance is not running yet. */
bool
running
=
(
sout_id
!=
NULL
);
if
(
!
running
)
vod_start
(
rtsp
->
vod_media
,
psz_session
);
ses
->
vod_started
=
true
;
}
else
if
(
range
!=
NULL
)
{
if
(
range
!=
NULL
)
{
int64_t
time
=
ParseNPT
(
range
+
4
);
vod_seek
(
rtsp
->
vod_media
,
psz_session
,
time
);
}
/* This is the thing to do to unpause... */
vod_start
(
rtsp
->
vod_media
,
psz_session
);
int64_t
time
=
ParseNPT
(
range
+
4
);
vod_seek
(
rtsp
->
vod_media
,
psz_session
,
time
);
}
/* This is the thing to do to unpause... */
if
(
running
)
vod_start
(
rtsp
->
vod_media
,
psz_session
);
}
}
vlc_mutex_unlock
(
&
rtsp
->
lock
);
...
...
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