]> git.sesse.net Git - vlc/commit
Fix a potential corruption in release_input_thread().
authorSam Hocevar <sam@zoy.org>
Fri, 21 Mar 2008 21:50:25 +0000 (22:50 +0100)
committerSam Hocevar <sam@zoy.org>
Fri, 21 Mar 2008 21:50:25 +0000 (22:50 +0100)
commit37558f4a013787f3a197db1de20aa6f0427ab2b1
tree60b389a8dcf89142677e8f41b22e2efc8a837520
parent5122c9d9e9f5851a84c2b037cc35dbacd3699aef
Fix a potential corruption in release_input_thread().

If the media instance owns the input and libvlc_media_instance_release()
is called immediately after libvlc_media_instance_stop(), there is a
chance that we try to free the input resources before the thread is
effectively terminated. To avoid this, we call input_DestroyThread()
instead of vlc_object_release() at the end of release_input_thread() when
the media instance owns the input thread.
src/control/media_instance.c