Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
fe5925db
Commit
fe5925db
authored
Jul 09, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remoteosd: fix invalid thread handle use on error
parent
11f3cbaa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
17 deletions
+2
-17
modules/video_filter/remoteosd.c
modules/video_filter/remoteosd.c
+2
-17
No files found.
modules/video_filter/remoteosd.c
View file @
fe5925db
...
@@ -158,8 +158,6 @@ static int MouseEvent( filter_t *,
...
@@ -158,8 +158,6 @@ static int MouseEvent( filter_t *,
static
int
KeyEvent
(
vlc_object_t
*
p_this
,
char
const
*
psz_var
,
static
int
KeyEvent
(
vlc_object_t
*
p_this
,
char
const
*
psz_var
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
);
static
void
stop_osdvnc
(
filter_t
*
p_filter
);
static
void
*
vnc_worker_thread
(
void
*
);
static
void
*
vnc_worker_thread
(
void
*
);
static
void
*
update_request_thread
(
void
*
);
static
void
*
update_request_thread
(
void
*
);
...
@@ -305,8 +303,6 @@ static int CreateFilter ( vlc_object_t *p_this )
...
@@ -305,8 +303,6 @@ static int CreateFilter ( vlc_object_t *p_this )
error:
error:
msg_Err
(
p_filter
,
"osdvnc filter discarded"
);
msg_Err
(
p_filter
,
"osdvnc filter discarded"
);
stop_osdvnc
(
p_filter
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
free
(
p_sys
->
psz_host
);
free
(
p_sys
->
psz_host
);
free
(
p_sys
->
psz_passwd
);
free
(
p_sys
->
psz_passwd
);
...
@@ -325,7 +321,8 @@ static void DestroyFilter( vlc_object_t *p_this )
...
@@ -325,7 +321,8 @@ static void DestroyFilter( vlc_object_t *p_this )
msg_Dbg
(
p_filter
,
"DestroyFilter called."
);
msg_Dbg
(
p_filter
,
"DestroyFilter called."
);
stop_osdvnc
(
p_filter
);
vlc_cancel
(
p_sys
->
worker_thread
);
vlc_join
(
p_sys
->
worker_thread
,
NULL
);
var_DelCallback
(
p_filter
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
var_DelCallback
(
p_filter
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
...
@@ -341,18 +338,6 @@ static void DestroyFilter( vlc_object_t *p_this )
...
@@ -341,18 +338,6 @@ static void DestroyFilter( vlc_object_t *p_this )
free
(
p_sys
);
free
(
p_sys
);
}
}
static
void
stop_osdvnc
(
filter_t
*
p_filter
)
{
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
msg_Dbg
(
p_filter
,
"joining worker_thread"
);
vlc_cancel
(
p_sys
->
worker_thread
);
vlc_join
(
p_sys
->
worker_thread
,
NULL
);
msg_Dbg
(
p_filter
,
"released worker_thread"
);
msg_Dbg
(
p_filter
,
"osdvnc stopped"
);
}
static
bool
read_exact
(
filter_t
*
p_filter
,
static
bool
read_exact
(
filter_t
*
p_filter
,
int
i_socket
,
int
i_socket
,
char
*
p_readbuf
,
char
*
p_readbuf
,
...
...
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