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
5e01d91c
Commit
5e01d91c
authored
May 17, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted stream_out/vod.c to vlc_clone().
parent
55c59361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/stream_out/vod.c
modules/stream_out/vod.c
+8
-7
No files found.
modules/stream_out/vod.c
View file @
5e01d91c
...
...
@@ -80,6 +80,7 @@ struct vod_sys_t
char
*
psz_rtsp_url
;
/* */
vlc_thread_t
thread
;
block_fifo_t
*
p_fifo_cmd
;
};
...
...
@@ -103,7 +104,7 @@ static vod_media_t *MediaNew( vod_t *, const char *, input_item_t * );
static
void
MediaDel
(
vod_t
*
,
vod_media_t
*
);
static
void
MediaAskDel
(
vod_t
*
,
vod_media_t
*
);
static
void
*
CommandThread
(
v
lc_object_t
*
p_this
);
static
void
*
CommandThread
(
v
oid
*
obj
);
static
void
CommandPush
(
vod_t
*
,
rtsp_cmd_type_t
,
vod_media_t
*
,
const
char
*
psz_arg
);
...
...
@@ -141,7 +142,7 @@ int OpenVoD( vlc_object_t *p_this )
p_vod
->
pf_media_del
=
MediaAskDel
;
p_sys
->
p_fifo_cmd
=
block_FifoNew
();
if
(
vlc_
thread_create
(
p_vod
,
CommandThrea
d
,
VLC_THREAD_PRIORITY_LOW
)
)
if
(
vlc_
clone
(
&
p_sys
->
thread
,
CommandThread
,
p_vo
d
,
VLC_THREAD_PRIORITY_LOW
)
)
{
msg_Err
(
p_vod
,
"cannot spawn rtsp vod thread"
);
block_FifoRelease
(
p_sys
->
p_fifo_cmd
);
...
...
@@ -169,8 +170,8 @@ void CloseVoD( vlc_object_t * p_this )
vod_sys_t
*
p_sys
=
p_vod
->
p_sys
;
/* Stop command thread */
vlc_
object_kill
(
p_vo
d
);
vlc_
thread_join
(
p_vod
);
vlc_
cancel
(
p_sys
->
threa
d
);
vlc_
join
(
p_sys
->
thread
,
NULL
);
while
(
block_FifoCount
(
p_sys
->
p_fifo_cmd
)
>
0
)
{
...
...
@@ -338,12 +339,12 @@ static void CommandPush( vod_t *p_vod, rtsp_cmd_type_t i_type,
block_FifoPut
(
p_vod
->
p_sys
->
p_fifo_cmd
,
p_cmd
);
}
static
void
*
CommandThread
(
v
lc_object_t
*
p_this
)
static
void
*
CommandThread
(
v
oid
*
obj
)
{
vod_t
*
p_vod
=
(
vod_t
*
)
p_this
;
vod_t
*
p_vod
=
(
vod_t
*
)
obj
;
vod_sys_t
*
p_sys
=
p_vod
->
p_sys
;
while
(
vlc_object_alive
(
p_vod
)
)
for
(
;;
)
{
block_t
*
p_block_cmd
=
block_FifoGet
(
p_sys
->
p_fifo_cmd
);
rtsp_cmd_t
cmd
;
...
...
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