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
20dc5fbc
Commit
20dc5fbc
authored
Mar 29, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kate: remove dead and broken vlc_object_find() use
parent
382b4354
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
25 deletions
+0
-25
modules/codec/kate.c
modules/codec/kate.c
+0
-25
No files found.
modules/codec/kate.c
View file @
20dc5fbc
...
...
@@ -652,7 +652,6 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h )
{
/* searching for vout to get its size is frowned upon, so we don't and
use a default size if the original canvas size is not specified. */
#if 1
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
p_sys
->
ki
.
original_canvas_width
>
0
&&
p_sys
->
ki
.
original_canvas_height
>
0
)
{
...
...
@@ -666,30 +665,6 @@ static void GetVideoSize( decoder_t *p_dec, int *w, int *h )
/* nothing, leave defaults */
msg_Dbg
(
p_dec
,
"original canvas size unknown"
);
}
#else
/* keep this just in case it might be allowed one day ;) */
vout_thread_t
*
p_vout
;
p_vout
=
vlc_object_find
(
(
vlc_object_t
*
)
p_dec
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
p_vout
)
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
p_sys
->
ki
.
original_canvas_width
>
0
&&
p_sys
->
ki
.
original_canvas_height
>
0
)
{
*
w
=
p_sys
->
ki
.
original_canvas_width
;
*
h
=
p_sys
->
ki
.
original_canvas_height
;
}
else
{
*
w
=
p_vout
->
fmt_in
.
i_width
;
*
h
=
p_vout
->
fmt_in
.
i_height
;
}
msg_Dbg
(
p_dec
,
"video: in %d %d, out %d %d, original canvas %zu %zu"
,
p_vout
->
fmt_in
.
i_width
,
p_vout
->
fmt_in
.
i_height
,
p_vout
->
fmt_out
.
i_width
,
p_vout
->
fmt_out
.
i_height
,
p_sys
->
ki
.
original_canvas_width
,
p_sys
->
ki
.
original_canvas_height
);
vlc_object_release
(
p_vout
);
}
#endif
}
static
void
CreateKateBitmap
(
picture_t
*
pic
,
const
kate_bitmap
*
bitmap
)
...
...
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