Do not use playlist_*AddInput() when the playlist has already been destroyed and...
authorRafaël Carré <funman@videolan.org>
Tue, 11 Mar 2008 18:05:17 +0000 (19:05 +0100)
committerRafaël Carré <funman@videolan.org>
Tue, 11 Mar 2008 18:45:27 +0000 (19:45 +0100)
commit0e86a35f7852d41c4f7d70759bc966c5f21c9ac0
treeea856ebd70c8cc783beea8dc49a515d4e2c7379f
parentc13a0a1dca2616c79edd269788d85212da0275e1
Do not use playlist_*AddInput() when the playlist has already been destroyed and is dying (fix a crash when exiting while directory access is still reading) Try to return early if one of those function fail, because it either mean we don't have anymore memory available (I'm still looking for infinite Turing machines), or we are exiting (the playlist is dying). Use object / thread helpers for simplicity
21 files changed:
modules/access/cdda.c
modules/access/directory.c
modules/control/http/macro.c
modules/control/http/rpn.c
modules/control/rc.c
modules/demux/mp4/mp4.c
modules/gui/macosx/applescript.m
modules/gui/macosx/playlist.m
modules/gui/macosx/wizard.m
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs_provider.cpp
modules/gui/wxwidgets/dialogs/open.cpp
modules/gui/wxwidgets/dialogs/playlist.cpp
modules/gui/wxwidgets/dialogs/wizard.cpp
modules/misc/lua/vlc.c
modules/services_discovery/upnp_cc.cpp
modules/services_discovery/upnp_intel.cpp
src/playlist/engine.c
src/playlist/item.c
src/playlist/loadsave.c
src/playlist/services_discovery.c