Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
ab36d2f7
Commit
ab36d2f7
authored
Nov 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: implement demux EOF
parent
1cfc0623
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
modules/access/rtp/input.c
modules/access/rtp/input.c
+7
-1
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+1
-2
modules/access/rtp/rtp.h
modules/access/rtp/rtp.h
+1
-1
No files found.
modules/access/rtp/input.c
View file @
ab36d2f7
...
@@ -190,7 +190,11 @@ void *rtp_thread (void *data)
...
@@ -190,7 +190,11 @@ void *rtp_thread (void *data)
}
}
void
rtp_process
(
demux_t
*
demux
)
/**
* Process one RTP packet from the de-jitter queue.
* @return 0 on success, -1 on EOF
*/
int
rtp_process
(
demux_t
*
demux
)
{
{
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
demux_sys_t
*
p_sys
=
demux
->
p_sys
;
mtime_t
deadline
=
INT64_MAX
;
mtime_t
deadline
=
INT64_MAX
;
...
@@ -202,4 +206,6 @@ void rtp_process (demux_t *demux)
...
@@ -202,4 +206,6 @@ void rtp_process (demux_t *demux)
else
else
vlc_cond_wait
(
&
p_sys
->
wait
,
&
p_sys
->
lock
);
vlc_cond_wait
(
&
p_sys
->
wait
,
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
vlc_mutex_unlock
(
&
p_sys
->
lock
);
return
p_sys
->
dead
?
-
1
:
0
;
}
}
modules/access/rtp/rtp.c
View file @
ab36d2f7
...
@@ -632,6 +632,5 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
...
@@ -632,6 +632,5 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
*/
*/
static
int
Demux
(
demux_t
*
demux
)
static
int
Demux
(
demux_t
*
demux
)
{
{
rtp_process
(
demux
);
return
rtp_process
(
demux
)
?
0
:
1
;
return
1
;
}
}
modules/access/rtp/rtp.h
View file @
ab36d2f7
...
@@ -46,7 +46,7 @@ void rtp_queue (demux_t *, rtp_session_t *, block_t *);
...
@@ -46,7 +46,7 @@ void rtp_queue (demux_t *, rtp_session_t *, block_t *);
bool
rtp_dequeue
(
demux_t
*
,
const
rtp_session_t
*
,
mtime_t
*
);
bool
rtp_dequeue
(
demux_t
*
,
const
rtp_session_t
*
,
mtime_t
*
);
int
rtp_add_type
(
demux_t
*
demux
,
rtp_session_t
*
ses
,
const
rtp_pt_t
*
pt
);
int
rtp_add_type
(
demux_t
*
demux
,
rtp_session_t
*
ses
,
const
rtp_pt_t
*
pt
);
void
rtp_process
(
demux_t
*
demux
);
int
rtp_process
(
demux_t
*
demux
);
void
*
rtp_thread
(
void
*
data
);
void
*
rtp_thread
(
void
*
data
);
/* Global data */
/* Global data */
...
...
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