Commit 20dc5fbc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Kate: remove dead and broken vlc_object_find() use

parent 382b4354
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment