[vlc-commits] avi: do not use vlc_object_kill()
Rémi Denis-Courmont
git at videolan.org
Wed May 9 18:53:07 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed May 9 17:56:52 2012 +0300| [966304b4d78124404133ea5aaa4a0704fc1e0158] | committer: Rémi Denis-Courmont
avi: do not use vlc_object_kill()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=966304b4d78124404133ea5aaa4a0704fc1e0158
---
modules/demux/avi/avi.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 08659d9..d5927ce 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -244,7 +244,7 @@ static int Open( vlc_object_t * p_this )
demux_t *p_demux = (demux_t *)p_this;
demux_sys_t *p_sys;
- bool b_index = false;
+ bool b_index = false, b_aborted = false;
int i_do_index;
avi_chunk_list_t *p_riff;
@@ -689,8 +689,7 @@ aviindex:
msg_Dbg( p_demux, "Fixing AVI index" );
goto aviindex;
case 3:
- /* Kill input */
- vlc_object_kill( p_demux->p_parent );
+ b_aborted = true;
goto error;
}
}
@@ -766,7 +765,7 @@ error:
AVI_ChunkFreeRoot( p_demux->s, &p_sys->ck_root );
free( p_sys );
- return vlc_object_alive( p_demux ) ? VLC_EGENERIC : VLC_ETIMEOUT;
+ return b_aborted ? VLC_ETIMEOUT : VLC_EGENERIC;
}
/*****************************************************************************
More information about the vlc-commits
mailing list