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
40e907f9
Commit
40e907f9
authored
Mar 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RemoteOSD: avoid vlc_object_find()
It does not seem to be needed in this case.
parent
20dc5fbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
modules/video_filter/remoteosd.c
modules/video_filter/remoteosd.c
+2
-16
No files found.
modules/video_filter/remoteosd.c
View file @
40e907f9
...
...
@@ -222,8 +222,6 @@ struct filter_sys_t
picture_t
*
p_pic
;
/* The picture with OSD data from VNC */
vout_thread_t
*
p_vout
;
/* Pointer to video-out thread */
int
i_socket
;
/* Socket used for VNC */
uint16_t
i_vnc_width
;
/* The with of the VNC screen */
...
...
@@ -309,13 +307,7 @@ static int CreateFilter ( vlc_object_t *p_this )
p_filter
->
pf_sub_filter
=
Filter
;
p_filter
->
pf_sub_mouse
=
MouseEvent
;
p_sys
->
p_vout
=
vlc_object_find
(
p_this
,
VLC_OBJECT_VOUT
,
FIND_PARENT
);
if
(
p_sys
->
p_vout
)
{
var_AddCallback
(
p_sys
->
p_vout
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
}
var_AddCallback
(
p_filter
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
es_format_Init
(
&
p_filter
->
fmt_out
,
SPU_ES
,
VLC_CODEC_SPU
);
p_filter
->
fmt_out
.
i_priority
=
0
;
...
...
@@ -363,13 +355,7 @@ static void DestroyFilter( vlc_object_t *p_this )
stop_osdvnc
(
p_filter
);
if
(
p_sys
->
p_vout
)
{
var_DelCallback
(
p_sys
->
p_vout
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
vlc_object_release
(
p_sys
->
p_vout
);
}
var_DelCallback
(
p_filter
->
p_libvlc
,
"key-pressed"
,
KeyEvent
,
p_this
);
var_Destroy
(
p_this
,
RMTOSD_CFG
"host"
);
var_Destroy
(
p_this
,
RMTOSD_CFG
"port"
);
...
...
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