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
59db278a
Commit
59db278a
authored
May 12, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: thread handling cleaning
parent
d31b60ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+8
-7
No files found.
modules/demux/mkv.cpp
View file @
59db278a
...
@@ -2257,6 +2257,7 @@ void demux_sys_t::StartUiThread()
...
@@ -2257,6 +2257,7 @@ void demux_sys_t::StartUiThread()
/* Now create our event thread catcher */
/* Now create our event thread catcher */
p_ev
=
(
event_thread_t
*
)
vlc_object_create
(
&
demuxer
,
sizeof
(
event_thread_t
)
);
p_ev
=
(
event_thread_t
*
)
vlc_object_create
(
&
demuxer
,
sizeof
(
event_thread_t
)
);
p_ev
->
p_demux
=
&
demuxer
;
p_ev
->
p_demux
=
&
demuxer
;
p_ev
->
b_die
=
VLC_FALSE
;
vlc_mutex_init
(
p_ev
,
&
p_ev
->
lock
);
vlc_mutex_init
(
p_ev
,
&
p_ev
->
lock
);
vlc_thread_create
(
p_ev
,
"mkv event thread handler"
,
EventThread
,
vlc_thread_create
(
p_ev
,
"mkv event thread handler"
,
EventThread
,
VLC_THREAD_PRIORITY_LOW
,
VLC_FALSE
);
VLC_THREAD_PRIORITY_LOW
,
VLC_FALSE
);
...
@@ -2269,6 +2270,11 @@ void demux_sys_t::StopUiThread()
...
@@ -2269,6 +2270,11 @@ void demux_sys_t::StopUiThread()
{
{
p_ev
->
b_die
=
VLC_TRUE
;
p_ev
->
b_die
=
VLC_TRUE
;
vlc_thread_join
(
p_ev
);
vlc_object_destroy
(
p_ev
);
p_ev
=
NULL
;
var_Destroy
(
p_input
,
"highlight-mutex"
);
var_Destroy
(
p_input
,
"highlight-mutex"
);
var_Destroy
(
p_input
,
"highlight"
);
var_Destroy
(
p_input
,
"highlight"
);
var_Destroy
(
p_input
,
"x-start"
);
var_Destroy
(
p_input
,
"x-start"
);
...
@@ -2278,11 +2284,6 @@ void demux_sys_t::StopUiThread()
...
@@ -2278,11 +2284,6 @@ void demux_sys_t::StopUiThread()
var_Destroy
(
p_input
,
"color"
);
var_Destroy
(
p_input
,
"color"
);
var_Destroy
(
p_input
,
"menu-contrast"
);
var_Destroy
(
p_input
,
"menu-contrast"
);
vlc_thread_join
(
p_ev
);
vlc_object_destroy
(
p_ev
);
p_ev
=
NULL
;
msg_Dbg
(
&
demuxer
,
"Stopping the UI Hook"
);
msg_Dbg
(
&
demuxer
,
"Stopping the UI Hook"
);
}
}
b_ui_hooked
=
false
;
b_ui_hooked
=
false
;
...
@@ -2484,7 +2485,7 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
...
@@ -2484,7 +2485,7 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
p_vout
=
NULL
;
p_vout
=
NULL
;
}
}
if
(
p_vout
==
NULL
)
else
if
(
p_vout
==
NULL
)
{
{
p_vout
=
(
vlc_object_t
*
)
vlc_object_find
(
p_sys
->
p_input
,
VLC_OBJECT_VOUT
,
p_vout
=
(
vlc_object_t
*
)
vlc_object_find
(
p_sys
->
p_input
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
FIND_CHILD
);
...
@@ -2495,7 +2496,7 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
...
@@ -2495,7 +2496,7 @@ int demux_sys_t::EventThread( vlc_object_t *p_this )
}
}
}
}
/* Wait a bit */
/* Wait a bit
, 10ms
*/
msleep
(
10000
);
msleep
(
10000
);
}
}
...
...
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