<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div><br></div><div>On Fri, Feb 21, 2020, at 10:31, Rémi Denis-Courmont wrote:<br></div><blockquote type="cite" id="qt"><div>Squashing is possible but I don't see the point. The number of conflicts in rebasing depends on how many commits are rebased, not how many commits are rebased onto.<br></div><div><br></div><div>In other words, it's my problem - if somebody else merges a conflicting change in the mean time.<br></div></blockquote><div><br></div><div>Ah yes, indeed.<br></div><div><br></div><blockquote type="cite" id="qt"><div><br></div><div class="qt-gmail_quote"><div>Le 21 février 2020 09:08:24 GMT+02:00, Thomas Guillem <thomas@gllm.fr> a écrit :<br></div><blockquote style="margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="qt-gmail_quote"><pre class="qt-k9mail"><div>Hello,<br></div><div><br></div><div>Is it possible to merge 5 and 6? <br></div><div><br></div><div>Conds and muteces are generally together. And that way we have one conflict to solve instead of two in case of rebasing.<br></div><div><br></div><div>(On a phone, didn't fully review the other patches)<br></div><div><br></div><div>On Thu, Feb 20, 2020, at 20:58, Rémi Denis-Courmont wrote:<br></div><blockquote style="margin-top:0pt;margin-right:0pt;margin-bottom:1ex;margin-left:0.8ex;border-left-color:rgb(114, 159, 207);border-left-style:solid;border-left-width:1px;padding-left:1ex;" class="qt-gmail_quote"><div><hr> include/vlc_cxx_helpers.hpp | 4 ----<br></div><div> include/vlc_threads.h | 7 -------<br></div><div> lib/core.c | 1 -<br></div><div> lib/event.c | 2 --<br></div><div> lib/media.c | 2 --<br></div><div> lib/media_list.c | 2 --<br></div><div> lib/media_list_player.c | 5 -----<br></div><div> modules/access/bluray.c | 10 +---------<br></div><div> modules/access/decklink.cpp | 1 -<br></div><div> modules/access/dshow/dshow.cpp | 1 -<br></div><div> modules/access/dtv/bdagraph.cpp | 1 -<br></div><div> modules/access/dv.c | 3 ---<br></div><div> modules/access/dvdnav.c | 2 --<br></div><div> modules/access/http/h2conn.c | 2 --<br></div><div> modules/access/http/h2output.c | 2 --<br></div><div> modules/access/mms/mmstu.c | 2 --<br></div><div> modules/access/rist.c | 2 --<br></div><div> modules/access/srt.c | 4 ----<br></div><div> modules/access_output/rist.c | 2 --<br></div><div> modules/access_output/srt.c | 4 ----<br></div><div> modules/audio_filter/compressor.c | 3 ---<br></div><div> modules/audio_filter/equalizer.c | 2 --<br></div><div> modules/audio_filter/spatializer/spatializer.cpp | 1 -<br></div><div> modules/audio_output/amem.c | 1 -<br></div><div> modules/audio_output/audiotrack.c | 1 -<br></div><div> modules/audio_output/audiounit_ios.m | 2 --<br></div><div> modules/audio_output/auhal.c | 5 -----<br></div><div> modules/audio_output/coreaudio_common.c | 15 ---------------<br></div><div> modules/audio_output/coreaudio_common.h | 5 +----<br></div><div> modules/audio_output/directsound.c | 3 ---<br></div><div> modules/audio_output/kai.c | 1 -<br></div><div> modules/audio_output/opensles_android.c | 1 -<br></div><div> modules/audio_output/waveout.c | 1 -<br></div><div> modules/codec/avcodec/video.c | 2 --<br></div><div> modules/codec/dmo/dmo.c | 2 --<br></div><div> modules/codec/kate.c | 1 -<br></div><div> modules/codec/libass.c | 1 -<br></div><div> modules/codec/omxil/mediacodec.c | 1 -<br></div><div> modules/codec/omxil/omxil_utils.h | 3 +--<br></div><div> modules/codec/omxil/utils.c | 1 -<br></div><div> modules/codec/videotoolbox.c | 3 ---<br></div><div> modules/codec/zvbi.c | 2 --<br></div><div> modules/control/dbus/dbus.c | 3 ---<br></div><div> modules/control/gestures.c | 2 --<br></div><div> modules/control/globalhotkeys/win32.c | 3 ---<br></div><div> modules/control/rc.c | 2 --<br></div><div> modules/demux/adaptive/PlaylistManager.cpp | 3 ---<br></div><div> modules/demux/adaptive/Streams.cpp | 2 --<br></div><div> modules/demux/adaptive/encryption/Keyring.cpp | 1 -<br></div><div> modules/demux/adaptive/http/Chunk.cpp | 1 -<br></div><div> modules/demux/adaptive/http/Downloader.cpp | 1 -<br></div><div> .../demux/adaptive/http/HTTPConnectionManager.cpp | 1 -<br></div><div> .../adaptive/logic/NearOptimalAdaptationLogic.cpp | 1 -<br></div><div> .../adaptive/logic/PredictiveAdaptationLogic.cpp | 1 -<br></div><div> .../adaptive/logic/RateBasedAdaptationLogic.cpp | 1 -<br></div><div> modules/demux/adaptive/plumbing/FakeESOut.cpp | 1 -<br></div><div> modules/demux/mkv/demux.cpp | 2 --<br></div><div> modules/demux/mkv/events.cpp | 1 -<br></div><div> modules/demux/mpeg/ts.c | 4 ----<br></div><div> modules/gui/ncurses.c | 1 -<br></div><div> modules/gui/qt/medialibrary/mlbasemodel.cpp | 1 -<br></div><div> modules/gui/skins2/commands/async_queue.cpp | 1 -<br></div><div> modules/gui/skins2/commands/cmd_callbacks.hpp | 1 -<br></div><div> modules/hw/d3d11/d3d11_surface.c | 1 -<br></div><div> modules/hw/mmal/codec.c | 2 --<br></div><div> modules/hw/mmal/converter.c | 2 --<br></div><div> modules/hw/mmal/mmal_cma.c | 1 -<br></div><div> modules/hw/mmal/mmal_picture.c | 2 --<br></div><div> modules/hw/mmal/vout.c | 2 --<br></div><div> modules/keystore/memory.c | 1 -<br></div><div> modules/lua/extension.c | 6 ------<br></div><div> modules/lua/libs/dialog.c | 1 -<br></div><div> modules/lua/services_discovery.c | 2 --<br></div><div> modules/misc/audioscrobbler.c | 2 --<br></div><div> modules/misc/fingerprinter.c | 2 --<br></div><div> modules/misc/rtsp.c | 2 --<br></div><div> modules/misc/securetransport.c | 2 --<br></div><div> modules/mux/mpeg/ts.c | 1 -<br></div><div> modules/notify/notify.c | 1 -<br></div><div> modules/services_discovery/podcast.c | 2 --<br></div><div> modules/spu/audiobargraph_v.c | 2 --<br></div><div> modules/spu/dynamicoverlay/dynamicoverlay.c | 1 -<br></div><div> modules/spu/logo.c | 1 -<br></div><div> modules/spu/marq.c | 1 -<br></div><div> modules/spu/mosaic.c | 1 -<br></div><div> modules/spu/rss.c | 4 ----<br></div><div> modules/spu/subsdelay.c | 2 --<br></div><div> modules/stream_filter/decomp.c | 2 --<br></div><div> modules/stream_filter/hds/hds.c | 2 --<br></div><div> modules/stream_filter/prefetch.c | 2 --<br></div><div> modules/stream_out/chromecast/cast.cpp | 1 -<br></div><div> modules/stream_out/rtp.c | 12 ------------<br></div><div> modules/stream_out/rtsp.c | 2 --<br></div><div> modules/stream_out/sdi/DBMSDIOutput.cpp | 1 -<br></div><div> modules/stream_out/sdi/SDIStream.cpp | 1 -<br></div><div> modules/stream_out/transcode/encoder/encoder.c | 1 -<br></div><div> modules/stream_out/transcode/transcode.c | 8 +-------<br></div><div> modules/video_filter/alphamask.c | 1 -<br></div><div> modules/video_filter/ball.c | 2 --<br></div><div> modules/video_filter/bluescreen.c | 1 -<br></div><div> modules/video_filter/erase.c | 1 -<br></div><div> modules/video_filter/extract.c | 1 -<br></div><div> modules/video_filter/gradfun.c | 1 -<br></div><div> modules/video_filter/gradient.c | 1 -<br></div><div> modules/video_filter/grain.c | 1 -<br></div><div> modules/video_filter/hqdn3d.c | 2 --<br></div><div> modules/video_filter/postproc.c | 1 -<br></div><div> modules/video_filter/puzzle.c | 3 ---<br></div><div> modules/video_output/decklink.cpp | 1 -<br></div><div> modules/video_output/ios.m | 1 -<br></div><div> modules/video_output/splitter.c | 2 --<br></div><div> modules/video_output/wayland/xdg-shell.c | 1 -<br></div><div> modules/video_output/win32/events.c | 1 -<br></div><div> modules/video_output/win32/inhibit.c | 2 --<br></div><div> modules/visualization/goom.c | 2 --<br></div><div> modules/visualization/projectm.cpp | 2 --<br></div><div> modules/visualization/vsxu.cpp | 4 ----<br></div><div> src/android/thread.c | 1 -<br></div><div> src/audio_output/output.c | 3 ---<br></div><div> src/clock/clock.c | 1 -<br></div><div> src/clock/input_clock.c | 1 -<br></div><div> src/input/decoder.c | 3 ---<br></div><div> src/input/demux_chained.c | 2 --<br></div><div> src/input/es_out.c | 2 --<br></div><div> src/input/es_out_timeshift.c | 2 --<br></div><div> src/input/input.c | 1 -<br></div><div> src/input/item.c | 1 -<br></div><div> src/input/resource.c | 2 --<br></div><div> src/input/stats.c | 2 --<br></div><div> src/input/thumbnailer.c | 1 -<br></div><div> src/input/vlm.c | 4 ----<br></div><div> src/interface/dialog.c | 2 --<br></div><div> src/libvlc.c | 5 -----<br></div><div> src/libvlc.h | 1 -<br></div><div> src/libvlccore.sym | 1 -<br></div><div> src/media_source/media_source.c | 1 -<br></div><div> src/media_source/media_tree.c | 1 -<br></div><div> src/misc/addons.c | 2 --<br></div><div> src/misc/background_worker.c | 1 -<br></div><div> src/misc/events.c | 2 --<br></div><div> src/misc/exit.c | 6 ------<br></div><div> src/misc/fifo.c | 1 -<br></div><div> src/misc/httpcookies.c | 1 -<br></div><div> src/misc/interrupt.c | 1 -<br></div><div> src/misc/medialibrary.c | 2 --<br></div><div> src/misc/messages.c | 1 -<br></div><div> src/misc/objects.c | 1 -<br></div><div> src/misc/picture_fifo.c | 1 -<br></div><div> src/misc/picture_pool.c | 1 -<br></div><div> src/misc/threads.c | 10 ----------<br></div><div> src/misc/update.c | 2 --<br></div><div> src/network/httpd.c | 4 ----<br></div><div> src/os2/thread.c | 1 -<br></div><div> src/player/player.c | 3 ---<br></div><div> src/player/timer.c | 1 -<br></div><div> src/posix/timer.c | 2 --<br></div><div> src/preparser/fetcher.c | 2 --<br></div><div> src/stream_output/stream_output.c | 3 ---<br></div><div> src/test/timer.c | 2 --<br></div><div> src/video_output/control.c | 1 -<br></div><div> src/video_output/opengl.c | 2 --<br></div><div> src/video_output/snapshot.c | 1 -<br></div><div> src/video_output/video_output.c | 5 -----<br></div><div> src/video_output/vout_subpictures.c | 5 -----<br></div><div> src/video_output/window.c | 2 --<br></div><div> 165 files changed, 4 insertions(+), 356 deletions(-)<br></div><div><br></div><div>diff --git a/include/vlc_cxx_helpers.hpp b/include/vlc_cxx_helpers.hpp<br></div><div>index 2f256016e5..67175407ac 100644<br></div><div>--- a/include/vlc_cxx_helpers.hpp<br></div><div>+++ b/include/vlc_cxx_helpers.hpp<br></div><div>@@ -281,10 +281,6 @@ public:<br></div><div> {<br></div><div> vlc_mutex_init( &m_mutex );<br></div><div> }<br></div><div>- ~mutex()<br></div><div>- {<br></div><div>- vlc_mutex_destroy( &m_mutex );<br></div><div>- }<br></div><div> <br></div><div> mutex( const mutex& ) = delete;<br></div><div> mutex& operator=( const mutex& ) = delete;<br></div><div>diff --git a/include/vlc_threads.h b/include/vlc_threads.h<br></div><div>index 02060cc775..77d9c416f8 100644<br></div><div>--- a/include/vlc_threads.h<br></div><div>+++ b/include/vlc_threads.h<br></div><div>@@ -344,13 +344,6 @@ VLC_API void vlc_mutex_init(vlc_mutex_t *);<br></div><div> */<br></div><div> VLC_API void vlc_mutex_init_recursive(vlc_mutex_t *);<br></div><div> <br></div><div>-/**<br></div><div>- * Deinitializes a mutex.<br></div><div>- *<br></div><div>- * The mutex must not be locked, otherwise behaviour is undefined.<br></div><div>- */<br></div><div>-VLC_API void vlc_mutex_destroy(vlc_mutex_t *);<br></div><div>-<br></div><div> /**<br></div><div> * Acquires a mutex.<br></div><div> *<br></div><div>diff --git a/lib/core.c b/lib/core.c<br></div><div>index 52549a139d..56b985f597 100644<br></div><div>--- a/lib/core.c<br></div><div>+++ b/lib/core.c<br></div><div>@@ -93,7 +93,6 @@ void libvlc_release( libvlc_instance_t *p_instance )<br></div><div> <br></div><div> if( refs == 0 )<br></div><div> {<br></div><div>- vlc_mutex_destroy( lock );<br></div><div> libvlc_Quit( p_instance->p_libvlc_int );<br></div><div> libvlc_InternalCleanup( p_instance->p_libvlc_int );<br></div><div> libvlc_InternalDestroy( p_instance->p_libvlc_int );<br></div><div>diff --git a/lib/event.c b/lib/event.c<br></div><div>index 28d3d0c232..96a17e1b19 100644<br></div><div>--- a/lib/event.c<br></div><div>+++ b/lib/event.c<br></div><div>@@ -90,8 +90,6 @@ void libvlc_event_manager_init(libvlc_event_manager_t <br></div><div>*em, void *obj)<br></div><div> <br></div><div> void libvlc_event_manager_destroy(libvlc_event_manager_t *em)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&em->lock);<br></div><div>-<br></div><div> for (size_t i = 0; i < vlc_array_count(&em->listeners); i++)<br></div><div> free(vlc_array_item_at_index(&em->listeners, i));<br></div><div> <br></div><div>diff --git a/lib/media.c b/lib/media.c<br></div><div>index f045c729d2..b2277e58d0 100644<br></div><div>--- a/lib/media.c<br></div><div>+++ b/lib/media.c<br></div><div>@@ -563,8 +563,6 @@ void libvlc_media_release( libvlc_media_t *p_md )<br></div><div> input_item_Release( p_md->p_input_item );<br></div><div> <br></div><div> vlc_cond_destroy( &p_md->parsed_cond );<br></div><div>- vlc_mutex_destroy( &p_md->parsed_lock );<br></div><div>- vlc_mutex_destroy( &p_md->subitems_lock );<br></div><div> <br></div><div> /* Construct the event */<br></div><div> libvlc_event_t event;<br></div><div>diff --git a/lib/media_list.c b/lib/media_list.c<br></div><div>index c4584c3a20..e8a8a25881 100644<br></div><div>--- a/lib/media_list.c<br></div><div>+++ b/lib/media_list.c<br></div><div>@@ -202,8 +202,6 @@ void libvlc_media_list_release( libvlc_media_list_t <br></div><div>* p_mlist )<br></div><div> libvlc_media_release( p_md );<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_mlist->object_lock );<br></div><div>- vlc_mutex_destroy( &p_mlist->refcount_lock );<br></div><div> vlc_array_clear( &p_mlist->items );<br></div><div> <br></div><div> libvlc_release( p_mlist->p_libvlc_instance );<br></div><div>diff --git a/lib/media_list_player.c b/lib/media_list_player.c<br></div><div>index 6a96f5aee3..6e02a807d9 100644<br></div><div>--- a/lib/media_list_player.c<br></div><div>+++ b/lib/media_list_player.c<br></div><div>@@ -498,8 +498,6 @@ libvlc_media_list_player_new(libvlc_instance_t * <br></div><div>p_instance)<br></div><div> error:<br></div><div> libvlc_event_manager_destroy(&p_mlp->event_manager);<br></div><div> vlc_cond_destroy(&p_mlp->seek_pending);<br></div><div>- vlc_mutex_destroy(&p_mlp->mp_callback_lock);<br></div><div>- vlc_mutex_destroy(&p_mlp->object_lock);<br></div><div> free(p_mlp);<br></div><div> return NULL;<br></div><div> }<br></div><div>@@ -544,9 +542,6 @@ void <br></div><div>libvlc_media_list_player_release(libvlc_media_list_player_t * p_mlp)<br></div><div> <br></div><div> libvlc_event_manager_destroy(&p_mlp->event_manager);<br></div><div> vlc_cond_destroy(&p_mlp->seek_pending);<br></div><div>- vlc_mutex_destroy(&p_mlp->mp_callback_lock);<br></div><div>- vlc_mutex_destroy(&p_mlp->object_lock);<br></div><div>-<br></div><div> free(p_mlp->current_playing_item_path);<br></div><div> free(p_mlp);<br></div><div> }<br></div><div>diff --git a/modules/access/bluray.c b/modules/access/bluray.c<br></div><div>index a299878282..90b811e159 100644<br></div><div>--- a/modules/access/bluray.c<br></div><div>+++ b/modules/access/bluray.c<br></div><div>@@ -476,10 +476,8 @@ static void <br></div><div>unref_subpicture_updater(bluray_spu_updater_sys_t *p_sys)<br></div><div> p_sys->p_overlay = NULL;<br></div><div> vlc_mutex_unlock(&p_sys->lock);<br></div><div> <br></div><div>- if (refs < 1) {<br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div>+ if (refs < 1)<br></div><div> free(p_sys);<br></div><div>- }<br></div><div> }<br></div><div> <br></div><div> /* Get a 3 char code<br></div><div>@@ -1131,10 +1129,6 @@ static void blurayClose(vlc_object_t *object)<br></div><div> <br></div><div> ARRAY_RESET(p_sys->events_delayed);<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_sys->pl_info_lock);<br></div><div>- vlc_mutex_destroy(&p_sys->bdj.lock);<br></div><div>- vlc_mutex_destroy(&p_sys->read_block_lock);<br></div><div>-<br></div><div> free(p_sys->psz_bd_path);<br></div><div> }<br></div><div> <br></div><div>@@ -1576,7 +1570,6 @@ static void bluray_esOutDestroy(es_out_t *p_out)<br></div><div> for (size_t i = 0; i < vlc_array_count(&esout_priv->es); ++i)<br></div><div> es_pair_Delete(vlc_array_item_at_index(&esout_priv->es, i));<br></div><div> vlc_array_clear(&esout_priv->es);<br></div><div>- vlc_mutex_destroy(&esout_priv->lock);<br></div><div> free(esout_priv);<br></div><div> }<br></div><div> <br></div><div>@@ -1804,7 +1797,6 @@ static void blurayCloseOverlay(demux_t *p_demux, <br></div><div>int plane)<br></div><div> /* no references to this overlay exist in vo anymore */<br></div><div> es_out_Control(p_sys->p_out, <br></div><div>BLURAY_ES_OUT_CONTROL_DELETE_OVERLAY, plane);<br></div><div> <br></div><div>- vlc_mutex_destroy(&ov->lock);<br></div><div> subpicture_region_ChainDelete(ov->p_regions);<br></div><div> free(ov);<br></div><div> <br></div><div>diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp<br></div><div>index d2ba30e111..e24fd128c7 100644<br></div><div>--- a/modules/access/decklink.cpp<br></div><div>+++ b/modules/access/decklink.cpp<br></div><div>@@ -782,7 +782,6 @@ static void Close(vlc_object_t *p_this)<br></div><div> if (sys->delegate)<br></div><div> sys->delegate->Release();<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->pts_lock);<br></div><div> free(sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/access/dshow/dshow.cpp <br></div><div>b/modules/access/dshow/dshow.cpp<br></div><div>index f5a6604d6a..d977070d0c 100644<br></div><div>--- a/modules/access/dshow/dshow.cpp<br></div><div>+++ b/modules/access/dshow/dshow.cpp<br></div><div>@@ -816,7 +816,6 @@ static void CommonClose( vlc_object_t *p_this, <br></div><div>access_sys_t *p_sys )<br></div><div> <br></div><div> vlc_delete_all( p_sys->pp_streams );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div> <br></div><div> vlc_mta_release( p_this );<br></div><div>diff --git a/modules/access/dtv/bdagraph.cpp b/modules/access/dtv/bdagraph.cpp<br></div><div>index 77d42ee56c..62a6133099 100644<br></div><div>--- a/modules/access/dtv/bdagraph.cpp<br></div><div>+++ b/modules/access/dtv/bdagraph.cpp<br></div><div>@@ -321,7 +321,6 @@ BDAOutput::BDAOutput( vlc_object_t *p_access ) :<br></div><div> BDAOutput::~BDAOutput()<br></div><div> {<br></div><div> Empty();<br></div><div>- vlc_mutex_destroy( &lock );<br></div><div> vlc_cond_destroy( &wait );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/access/dv.c b/modules/access/dv.c<br></div><div>index 14d538f3c1..8a8baa104d 100644<br></div><div>--- a/modules/access/dv.c<br></div><div>+++ b/modules/access/dv.c<br></div><div>@@ -238,7 +238,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> raw1394_iso_shutdown( p_sys->p_raw1394 );<br></div><div> <br></div><div> vlc_join( p_sys->p_ev->thread, NULL );<br></div><div>- vlc_mutex_destroy( &p_sys->p_ev->lock );<br></div><div> <br></div><div> /* Cleanup frame data */<br></div><div> if( p_sys->p_ev->p_frame )<br></div><div>@@ -256,8 +255,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> raw1394_destroy_handle( p_sys->p_raw1394 );<br></div><div> <br></div><div> AVCClose( p_access );<br></div><div>-<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> }<br></div><div> <br></div><div> /*****************************************************************************<br></div><div>diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c<br></div><div>index fb1b1aef63..3b18266ac8 100644<br></div><div>--- a/modules/access/dvdnav.c<br></div><div>+++ b/modules/access/dvdnav.c<br></div><div>@@ -487,8 +487,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> /* Stop still image handler */<br></div><div> if( p_sys->still.b_created )<br></div><div> vlc_timer_destroy( p_sys->still.timer );<br></div><div>- vlc_mutex_destroy( &p_sys->still.lock );<br></div><div>- vlc_mutex_destroy( &p_sys->event_lock );<br></div><div> <br></div><div> for( int i = 0; i < PS_TK_COUNT; i++ )<br></div><div> {<br></div><div>diff --git a/modules/access/http/h2conn.c b/modules/access/http/h2conn.c<br></div><div>index e2c9de6e86..20c7e5b0e4 100644<br></div><div>--- a/modules/access/http/h2conn.c<br></div><div>+++ b/modules/access/http/h2conn.c<br></div><div>@@ -740,7 +740,6 @@ static void vlc_h2_conn_destroy(struct vlc_h2_conn *conn)<br></div><div> <br></div><div> vlc_cancel(conn->thread);<br></div><div> vlc_join(conn->thread, NULL);<br></div><div>- vlc_mutex_destroy(&conn->lock);<br></div><div> <br></div><div> vlc_h2_output_destroy(conn->out);<br></div><div> vlc_tls_Shutdown(conn->conn.tls, true);<br></div><div>@@ -796,7 +795,6 @@ struct vlc_http_conn *vlc_h2_conn_create(void *ctx, <br></div><div>struct vlc_tls *tls)<br></div><div> || vlc_clone(&conn->thread, vlc_h2_recv_thread, conn,<br></div><div> VLC_THREAD_PRIORITY_INPUT))<br></div><div> {<br></div><div>- vlc_mutex_destroy(&conn->lock);<br></div><div> vlc_h2_output_destroy(conn->out);<br></div><div> goto error;<br></div><div> }<br></div><div>diff --git a/modules/access/http/h2output.c <br></div><div>b/modules/access/http/h2output.c<br></div><div>index bfb41208ca..1d038ecc2d 100644<br></div><div>--- a/modules/access/http/h2output.c<br></div><div>+++ b/modules/access/http/h2output.c<br></div><div>@@ -323,7 +323,6 @@ struct vlc_h2_output *vlc_h2_output_create(struct <br></div><div>vlc_tls *tls, bool client)<br></div><div> if (vlc_clone(&out->thread, cb, out, VLC_THREAD_PRIORITY_INPUT))<br></div><div> {<br></div><div> vlc_cond_destroy(&out->wait);<br></div><div>- vlc_mutex_destroy(&out->lock);<br></div><div> free(out);<br></div><div> out = NULL;<br></div><div> }<br></div><div>@@ -341,7 +340,6 @@ void vlc_h2_output_destroy(struct vlc_h2_output <br></div><div>*out)<br></div><div> vlc_join(out->thread, NULL);<br></div><div> <br></div><div> vlc_cond_destroy(&out->wait);<br></div><div>- vlc_mutex_destroy(&out->lock);<br></div><div> /* Flush queues in case the thread was terminated within poll() and some<br></div><div> * packets were still queued. */<br></div><div> vlc_h2_output_flush_unlocked(out);<br></div><div>diff --git a/modules/access/mms/mmstu.c b/modules/access/mms/mmstu.c<br></div><div>index d96cf22289..4c0c5a62e6 100644<br></div><div>--- a/modules/access/mms/mmstu.c<br></div><div>+++ b/modules/access/mms/mmstu.c<br></div><div>@@ -110,7 +110,6 @@ int MMSTUOpen( stream_t *p_access )<br></div><div> {<br></div><div> msg_Err( p_access, "invalid server name" );<br></div><div> vlc_UrlClean( &p_sys->url );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_netwrite );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -147,7 +146,6 @@ int MMSTUOpen( stream_t *p_access )<br></div><div> {<br></div><div> msg_Err( p_access, "cannot connect to server" );<br></div><div> vlc_UrlClean( &p_sys->url );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_netwrite );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>diff --git a/modules/access/rist.c b/modules/access/rist.c<br></div><div>index 0c0d49eae7..be4b0b8058 100644<br></div><div>--- a/modules/access/rist.c<br></div><div>+++ b/modules/access/rist.c<br></div><div>@@ -1035,8 +1035,6 @@ static void Clean( stream_t *p_access )<br></div><div> free(p_sys->flow->buffer);<br></div><div> free(p_sys->flow);<br></div><div> }<br></div><div>-<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> }<br></div><div> <br></div><div> static void Close(vlc_object_t *p_this)<br></div><div>diff --git a/modules/access/srt.c b/modules/access/srt.c<br></div><div>index ac73fbcebf..ab52ba4fcc 100644<br></div><div>--- a/modules/access/srt.c<br></div><div>+++ b/modules/access/srt.c<br></div><div>@@ -390,8 +390,6 @@ static int Open(vlc_object_t *p_this)<br></div><div> return VLC_SUCCESS;<br></div><div> <br></div><div> failed:<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> if ( p_sys->sock != -1 ) srt_close( p_sys->sock );<br></div><div> if ( p_sys->i_poll_id != -1 ) srt_epoll_release( p_sys->i_poll_id );<br></div><div> <br></div><div>@@ -403,8 +401,6 @@ static void Close(vlc_object_t *p_this)<br></div><div> stream_t *p_stream = (stream_t*)p_this;<br></div><div> stream_sys_t *p_sys = p_stream->p_sys;<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> srt_epoll_remove_usock( p_sys->i_poll_id, p_sys->sock );<br></div><div> srt_close( p_sys->sock );<br></div><div> srt_epoll_release( p_sys->i_poll_id );<br></div><div>diff --git a/modules/access_output/rist.c b/modules/access_output/rist.c<br></div><div>index 3f2f3901bd..ca967016eb 100644<br></div><div>--- a/modules/access_output/rist.c<br></div><div>+++ b/modules/access_output/rist.c<br></div><div>@@ -714,8 +714,6 @@ static void Clean( sout_access_out_t *p_access )<br></div><div> free(p_sys->flow);<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>- vlc_mutex_destroy( &p_sys->fd_lock );<br></div><div> if (p_sys->p_pktbuffer)<br></div><div> block_Release(p_sys->p_pktbuffer);<br></div><div> }<br></div><div>diff --git a/modules/access_output/srt.c b/modules/access_output/srt.c<br></div><div>index da55a30478..0b66f24a8a 100644<br></div><div>--- a/modules/access_output/srt.c<br></div><div>+++ b/modules/access_output/srt.c<br></div><div>@@ -402,8 +402,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> return VLC_SUCCESS;<br></div><div> <br></div><div> failed:<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> if ( p_sys->sock != -1 ) srt_close( p_sys->sock );<br></div><div> if ( p_sys->i_poll_id != -1 ) srt_epoll_release( p_sys->i_poll_id );<br></div><div> <br></div><div>@@ -415,8 +413,6 @@ static void Close( vlc_object_t * p_this )<br></div><div> sout_access_out_t *p_access = (sout_access_out_t*)p_this;<br></div><div> sout_access_out_sys_t *p_sys = p_access->p_sys;<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> srt_epoll_remove_usock( p_sys->i_poll_id, p_sys->sock );<br></div><div> srt_close( p_sys->sock );<br></div><div> srt_epoll_release( p_sys->i_poll_id );<br></div><div>diff --git a/modules/audio_filter/compressor.c <br></div><div>b/modules/audio_filter/compressor.c<br></div><div>index 402cbb5ed1..5aab1ceaac 100644<br></div><div>--- a/modules/audio_filter/compressor.c<br></div><div>+++ b/modules/audio_filter/compressor.c<br></div><div>@@ -282,9 +282,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_aout, "compressor-knee", KneeCallback, p_sys );<br></div><div> var_DelCallback( p_aout, "compressor-makeup-gain", <br></div><div>MakeupGainCallback, p_sys );<br></div><div> <br></div><div>- /* Destroy the mutex */<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> /* Destroy the filter parameter structure */<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/modules/audio_filter/equalizer.c b/modules/audio_filter/equalizer.c<br></div><div>index c63547f569..92ccaf85b2 100644<br></div><div>--- a/modules/audio_filter/equalizer.c<br></div><div>+++ b/modules/audio_filter/equalizer.c<br></div><div>@@ -157,7 +157,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> vlc_mutex_init( &p_sys->lock );<br></div><div> if( EqzInit( p_filter, p_filter->fmt_in.audio.i_rate ) != VLC_SUCCESS )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -179,7 +178,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> filter_sys_t *p_sys = p_filter->p_sys;<br></div><div> <br></div><div> EqzClean( p_filter );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/audio_filter/spatializer/spatializer.cpp <br></div><div>b/modules/audio_filter/spatializer/spatializer.cpp<br></div><div>index eccde1331e..4f9c19b133 100644<br></div><div>--- a/modules/audio_filter/spatializer/spatializer.cpp<br></div><div>+++ b/modules/audio_filter/spatializer/spatializer.cpp<br></div><div>@@ -192,7 +192,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> }<br></div><div> <br></div><div> delete p_sys->p_reverbm;<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> msg_Dbg( p_this, "Closing filter spatializer" );<br></div><div> }<br></div><div>diff --git a/modules/audio_output/amem.c b/modules/audio_output/amem.c<br></div><div>index f8f7627ef3..176d2237c6 100644<br></div><div>--- a/modules/audio_output/amem.c<br></div><div>+++ b/modules/audio_output/amem.c<br></div><div>@@ -394,6 +394,5 @@ static void Close (vlc_object_t *obj)<br></div><div> audio_output_t *aout = (audio_output_t *)obj;<br></div><div> aout_sys_t *sys = aout->sys;<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> free (sys);<br></div><div> }<br></div><div>diff --git a/modules/audio_output/audiotrack.c <br></div><div>b/modules/audio_output/audiotrack.c<br></div><div>index 3fcd79c7a5..683e16a9d7 100644<br></div><div>--- a/modules/audio_output/audiotrack.c<br></div><div>+++ b/modules/audio_output/audiotrack.c<br></div><div>@@ -2246,7 +2246,6 @@ Close( vlc_object_t *obj )<br></div><div> audio_output_t *p_aout = (audio_output_t *) obj;<br></div><div> aout_sys_t *p_sys = p_aout->sys;<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div> vlc_cond_destroy(&p_sys->aout_cond);<br></div><div> vlc_cond_destroy(&p_sys->thread_cond);<br></div><div> free( p_sys );<br></div><div>diff --git a/modules/audio_output/audiounit_ios.m <br></div><div>b/modules/audio_output/audiounit_ios.m<br></div><div>index 072de41534..e0547b514f 100644<br></div><div>--- a/modules/audio_output/audiounit_ios.m<br></div><div>+++ b/modules/audio_output/audiounit_ios.m<br></div><div>@@ -611,7 +611,6 @@ Close(vlc_object_t *obj)<br></div><div> <br></div><div> [sys->aoutWrapper release];<br></div><div> <br></div><div>- ca_Close(aout);<br></div><div> free(sys);<br></div><div> }<br></div><div> <br></div><div>@@ -636,7 +635,6 @@ Open(vlc_object_t *obj)<br></div><div> sys->aoutWrapper = [[AoutWrapper alloc] initWithAout:aout];<br></div><div> if (sys->aoutWrapper == NULL)<br></div><div> {<br></div><div>- ca_Close(aout);<br></div><div> free(sys);<br></div><div> return VLC_ENOMEM;<br></div><div> }<br></div><div>diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c<br></div><div>index 6c96d802fc..434de23c21 100644<br></div><div>--- a/modules/audio_output/auhal.c<br></div><div>+++ b/modules/audio_output/auhal.c<br></div><div>@@ -878,7 +878,6 @@ out:<br></div><div> if (ret != VLC_SUCCESS)<br></div><div> retValue = false;<br></div><div> <br></div><div>- vlc_mutex_destroy(&w.lock);<br></div><div> vlc_cond_destroy(&w.cond);<br></div><div> <br></div><div> return retValue;<br></div><div>@@ -1689,10 +1688,6 @@ static void Close(vlc_object_t *obj)<br></div><div> config_PutPsz("auhal-audio-device", psz_device);<br></div><div> free(psz_device);<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_sys->selected_device_lock);<br></div><div>- vlc_mutex_destroy(&p_sys->device_list_lock);<br></div><div>-<br></div><div>- ca_Close(p_aout);<br></div><div> free(p_sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/audio_output/coreaudio_common.c <br></div><div>b/modules/audio_output/coreaudio_common.c<br></div><div>index f38490ea1d..900616a8aa 100644<br></div><div>--- a/modules/audio_output/coreaudio_common.c<br></div><div>+++ b/modules/audio_output/coreaudio_common.c<br></div><div>@@ -82,13 +82,6 @@ lock_init(struct aout_sys_common *p_sys)<br></div><div> vlc_mutex_init(&p_sys->lock.mutex);<br></div><div> }<br></div><div> <br></div><div>-static inline void<br></div><div>-lock_destroy(struct aout_sys_common *p_sys)<br></div><div>-{<br></div><div>- if (unlikely(!os_unfair_lock_lock))<br></div><div>- vlc_mutex_destroy(&p_sys->lock.mutex);<br></div><div>-}<br></div><div>-<br></div><div> static inline void<br></div><div> lock_lock(struct aout_sys_common *p_sys)<br></div><div> {<br></div><div>@@ -129,14 +122,6 @@ ca_Open(audio_output_t *p_aout)<br></div><div> return VLC_SUCCESS;<br></div><div> }<br></div><div> <br></div><div>-void<br></div><div>-ca_Close(audio_output_t *p_aout)<br></div><div>-{<br></div><div>- struct aout_sys_common *p_sys = (struct aout_sys_common *) <br></div><div>p_aout->sys;<br></div><div>-<br></div><div>- lock_destroy(p_sys);<br></div><div>-}<br></div><div>-<br></div><div> /* Called from render callbacks. No lock, wait, and IO here */<br></div><div> void<br></div><div> ca_Render(audio_output_t *p_aout, uint32_t i_frames, uint64_t <br></div><div>i_host_time,<br></div><div>diff --git a/modules/audio_output/coreaudio_common.h <br></div><div>b/modules/audio_output/coreaudio_common.h<br></div><div>index d6949b403c..49f6779234 100644<br></div><div>--- a/modules/audio_output/coreaudio_common.h<br></div><div>+++ b/modules/audio_output/coreaudio_common.h<br></div><div>@@ -47,8 +47,7 @@<br></div><div> <br></div><div> struct aout_sys_common<br></div><div> {<br></div><div>- /* The following is owned by common.c (initialized from ca_Open, cleaned<br></div><div>- * from ca_Close) */<br></div><div>+ /* The following is owned by common.c (initialized from ca_Open) */<br></div><div> <br></div><div> mach_timebase_info_data_t tinfo;<br></div><div> <br></div><div>@@ -87,8 +86,6 @@ struct aout_sys_common<br></div><div> <br></div><div> int ca_Open(audio_output_t *p_aout);<br></div><div> <br></div><div>-void ca_Close(audio_output_t *p_aout);<br></div><div>-<br></div><div> void ca_Render(audio_output_t *p_aout, uint32_t i_nb_samples, uint64_t <br></div><div>i_host_time,<br></div><div> uint8_t *p_output, size_t i_requested);<br></div><div> <br></div><div>diff --git a/modules/audio_output/directsound.c <br></div><div>b/modules/audio_output/directsound.c<br></div><div>index f4d7efea6d..9f3ec0463d 100644<br></div><div>--- a/modules/audio_output/directsound.c<br></div><div>+++ b/modules/audio_output/directsound.c<br></div><div>@@ -553,7 +553,6 @@ static HRESULT Stop( aout_stream_sys_t *p_sys )<br></div><div> vlc_cancel( p_sys->eraser_thread );<br></div><div> vlc_join( p_sys->eraser_thread, NULL );<br></div><div> vlc_cond_destroy( &p_sys->cond );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> if( p_sys->p_notify != NULL )<br></div><div> {<br></div><div>@@ -661,7 +660,6 @@ static HRESULT Start( vlc_object_t *obj, <br></div><div>aout_stream_sys_t *sys,<br></div><div> }<br></div><div> else<br></div><div> {<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> vlc_cond_destroy(&sys->cond);<br></div><div> return E_FAIL;<br></div><div> }<br></div><div>@@ -808,7 +806,6 @@ static HRESULT Start( vlc_object_t *obj, <br></div><div>aout_stream_sys_t *sys,<br></div><div> <br></div><div> error:<br></div><div> vlc_cond_destroy(&sys->cond);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> <br></div><div> if( sys->p_notify != NULL )<br></div><div> {<br></div><div>diff --git a/modules/audio_output/kai.c b/modules/audio_output/kai.c<br></div><div>index dd75e367d8..b565619795 100644<br></div><div>--- a/modules/audio_output/kai.c<br></div><div>+++ b/modules/audio_output/kai.c<br></div><div>@@ -371,7 +371,6 @@ static void DestroyBuffer( audio_output_t *aout )<br></div><div> aout_sys_t *sys = aout->sys;<br></div><div> audio_buffer_t *buffer = sys->buffer;<br></div><div> <br></div><div>- vlc_mutex_destroy( &buffer->mutex );<br></div><div> vlc_cond_destroy( &buffer->cond );<br></div><div> <br></div><div> free( buffer->data );<br></div><div>diff --git a/modules/audio_output/opensles_android.c <br></div><div>b/modules/audio_output/opensles_android.c<br></div><div>index b1c2a0d985..424baf2b04 100644<br></div><div>--- a/modules/audio_output/opensles_android.c<br></div><div>+++ b/modules/audio_output/opensles_android.c<br></div><div>@@ -521,7 +521,6 @@ static void Close(vlc_object_t *obj)<br></div><div> Destroy(sys->outputMixObject);<br></div><div> Destroy(sys->engineObject);<br></div><div> dlclose(sys->p_so_handle);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> free(sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/audio_output/waveout.c b/modules/audio_output/waveout.c<br></div><div>index 990b1e8b8d..e3c06bb008 100644<br></div><div>--- a/modules/audio_output/waveout.c<br></div><div>+++ b/modules/audio_output/waveout.c<br></div><div>@@ -824,7 +824,6 @@ static void Close(vlc_object_t *obj)<br></div><div> <br></div><div> vlc_timer_destroy( sys->volume_poll_timer );<br></div><div> vlc_cond_destroy( &sys->cond );<br></div><div>- vlc_mutex_destroy( &sys->lock );<br></div><div> <br></div><div> free(sys);<br></div><div> }<br></div><div>diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c<br></div><div>index 8e35104e8b..b2d5271755 100644<br></div><div>--- a/modules/codec/avcodec/video.c<br></div><div>+++ b/modules/codec/avcodec/video.c<br></div><div>@@ -693,7 +693,6 @@ int InitVideoDec( vlc_object_t *obj )<br></div><div> /* ***** Open the codec ***** */<br></div><div> if( OpenVideoCodec( p_dec ) < 0 )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> avcodec_free_context( &p_context );<br></div><div> return VLC_EGENERIC;<br></div><div>@@ -1403,7 +1402,6 @@ void EndVideoDec( vlc_object_t *obj )<br></div><div> if( p_sys->p_va )<br></div><div> vlc_va_Delete( p_sys->p_va );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/codec/dmo/dmo.c b/modules/codec/dmo/dmo.c<br></div><div>index f129ab9ef1..aef0710417 100644<br></div><div>--- a/modules/codec/dmo/dmo.c<br></div><div>+++ b/modules/codec/dmo/dmo.c<br></div><div>@@ -275,7 +275,6 @@ found:<br></div><div> error:<br></div><div> vlc_cond_destroy( &p_sys->wait_input );<br></div><div> vlc_cond_destroy( &p_sys->wait_output );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> return VLC_ENOMEM;<br></div><div> }<br></div><div>@@ -296,7 +295,6 @@ static void DecoderClose( vlc_object_t *p_this )<br></div><div> vlc_join( p_sys->thread, NULL );<br></div><div> vlc_cond_destroy( &p_sys->wait_input );<br></div><div> vlc_cond_destroy( &p_sys->wait_output );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/codec/kate.c b/modules/codec/kate.c<br></div><div>index 77b6b5b7c0..531b812978 100644<br></div><div>--- a/modules/codec/kate.c<br></div><div>+++ b/modules/codec/kate.c<br></div><div>@@ -1308,7 +1308,6 @@ static void DecSysRelease( decoder_sys_t *p_sys )<br></div><div> }<br></div><div> <br></div><div> vlc_mutex_unlock( &p_sys->lock );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> #ifdef HAVE_TIGER<br></div><div> if( p_sys->p_tr )<br></div><div>diff --git a/modules/codec/libass.c b/modules/codec/libass.c<br></div><div>index aff12c942a..dbaa5f5c4c 100644<br></div><div>--- a/modules/codec/libass.c<br></div><div>+++ b/modules/codec/libass.c<br></div><div>@@ -303,7 +303,6 @@ static void DecSysRelease( decoder_sys_t *p_sys )<br></div><div> return;<br></div><div> }<br></div><div> vlc_mutex_unlock( &p_sys->lock );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> if( p_sys->p_track )<br></div><div> ass_free_track( p_sys->p_track );<br></div><div>diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c<br></div><div>index be92640be6..ec2536dbe5 100644<br></div><div>--- a/modules/codec/omxil/mediacodec.c<br></div><div>+++ b/modules/codec/omxil/mediacodec.c<br></div><div>@@ -1004,7 +1004,6 @@ static void AbortDecoderLocked(decoder_t *p_dec)<br></div><div> <br></div><div> static void CleanDecoder(decoder_sys_t *p_sys)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div> vlc_cond_destroy(&p_sys->cond);<br></div><div> vlc_cond_destroy(&p_sys->dec_cond);<br></div><div> <br></div><div>diff --git a/modules/codec/omxil/omxil_utils.h <br></div><div>b/modules/codec/omxil/omxil_utils.h<br></div><div>index c08f280e7b..6617534dff 100644<br></div><div>--- a/modules/codec/omxil/omxil_utils.h<br></div><div>+++ b/modules/codec/omxil/omxil_utils.h<br></div><div>@@ -88,8 +88,7 @@ static inline OMX_TICKS ToOmxTicks(int64_t value)<br></div><div> (p_fifo)->pp_last = &(p_fifo)->p_first; } while(0)<br></div><div> <br></div><div> #define OMX_FIFO_DESTROY(p_fifo) \<br></div><div>- do { vlc_mutex_destroy( &(p_fifo)->lock ); \<br></div><div>- vlc_cond_destroy (&(p_fifo)->wait); } while(0)<br></div><div>+ do { vlc_cond_destroy (&(p_fifo)->wait); } while(0)<br></div><div> <br></div><div> #define OMX_FIFO_PEEK(p_fifo, p_buffer) \<br></div><div> p_buffer = (p_fifo)->p_first;<br></div><div>diff --git a/modules/codec/omxil/utils.c b/modules/codec/omxil/utils.c<br></div><div>index ee30252bda..ba3de5cfd1 100644<br></div><div>--- a/modules/codec/omxil/utils.c<br></div><div>+++ b/modules/codec/omxil/utils.c<br></div><div>@@ -50,7 +50,6 @@ void InitOmxEventQueue(OmxEventQueue *queue)<br></div><div> <br></div><div> void DeinitOmxEventQueue(OmxEventQueue *queue)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&queue->mutex);<br></div><div> vlc_cond_destroy(&queue->cond);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/codec/videotoolbox.c b/modules/codec/videotoolbox.c<br></div><div>index edf39a88a2..5e1bc09a10 100644<br></div><div>--- a/modules/codec/videotoolbox.c<br></div><div>+++ b/modules/codec/videotoolbox.c<br></div><div>@@ -1304,7 +1304,6 @@ static void pic_pacer_Destroy(void *priv)<br></div><div> {<br></div><div> struct pic_pacer *pic_pacer = priv;<br></div><div> <br></div><div>- vlc_mutex_destroy(&pic_pacer->lock);<br></div><div> vlc_cond_destroy(&pic_pacer->wait);<br></div><div> }<br></div><div> <br></div><div>@@ -1495,8 +1494,6 @@ static void CloseDecoder(vlc_object_t *p_this)<br></div><div> if(p_sys->pf_codec_clean)<br></div><div> p_sys->pf_codec_clean(p_dec);<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div>-<br></div><div> vlc_video_context_Release(p_sys->vctx);<br></div><div> <br></div><div> free(p_sys);<br></div><div>diff --git a/modules/codec/zvbi.c b/modules/codec/zvbi.c<br></div><div>index 2670df952c..262bb92607 100644<br></div><div>--- a/modules/codec/zvbi.c<br></div><div>+++ b/modules/codec/zvbi.c<br></div><div>@@ -288,8 +288,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_dec, "vbi-opaque", Opaque, p_sys );<br></div><div> var_DelCallback( p_dec, "vbi-page", RequestPage, p_sys );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> if( p_sys->p_vbi_dec )<br></div><div> vbi_decoder_delete( p_sys->p_vbi_dec );<br></div><div> free( p_sys );<br></div><div>diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c<br></div><div>index ed386bdbba..dfe3afb181 100644<br></div><div>--- a/modules/control/dbus/dbus.c<br></div><div>+++ b/modules/control/dbus/dbus.c<br></div><div>@@ -346,8 +346,6 @@ playlist_listener_failure:<br></div><div> dbus_connection_unref( p_conn );<br></div><div> <br></div><div> dbus_connection_failure:<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> vlc_close( p_sys->p_pipe_fds[1] );<br></div><div> vlc_close( p_sys->p_pipe_fds[0] );<br></div><div> <br></div><div>@@ -387,7 +385,6 @@ static void Close ( vlc_object_t *p_this )<br></div><div> callback_info_t* info = vlc_array_item_at_index( &p_sys->events, i );<br></div><div> free( info );<br></div><div> }<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> vlc_array_clear( &p_sys->events );<br></div><div> vlc_array_clear( &p_sys->timeouts );<br></div><div> vlc_array_clear( &p_sys->watches );<br></div><div>diff --git a/modules/control/gestures.c b/modules/control/gestures.c<br></div><div>index 668be6936a..4497a44521 100644<br></div><div>--- a/modules/control/gestures.c<br></div><div>+++ b/modules/control/gestures.c<br></div><div>@@ -161,7 +161,6 @@ static int Open ( vlc_object_t *p_this )<br></div><div> <br></div><div> error:<br></div><div> vlc_vector_clear(&p_sys->vout_vector);<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free(p_sys);<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -198,7 +197,6 @@ static void Close ( vlc_object_t *p_this )<br></div><div> vlc_vector_clear(&p_sys->vout_vector);<br></div><div> <br></div><div> /* Destroy structure */<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/control/globalhotkeys/win32.c <br></div><div>b/modules/control/globalhotkeys/win32.c<br></div><div>index 2a0e3a2954..39c34f211e 100644<br></div><div>--- a/modules/control/globalhotkeys/win32.c<br></div><div>+++ b/modules/control/globalhotkeys/win32.c<br></div><div>@@ -79,7 +79,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> <br></div><div> if( vlc_clone( &p_sys->thread, Thread, p_intf, VLC_THREAD_PRIORITY_LOW ) )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div> free( p_sys );<br></div><div> p_intf->p_sys = NULL;<br></div><div>@@ -94,7 +93,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> {<br></div><div> vlc_mutex_unlock( &p_sys->lock );<br></div><div> vlc_join( p_sys->thread, NULL );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div> free( p_sys );<br></div><div> p_intf->p_sys = NULL;<br></div><div>@@ -121,7 +119,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> vlc_mutex_unlock( &p_sys->lock );<br></div><div> <br></div><div> vlc_join( p_sys->thread, NULL );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/modules/control/rc.c b/modules/control/rc.c<br></div><div>index cdfa70b08c..8f7161ecd6 100644<br></div><div>--- a/modules/control/rc.c<br></div><div>+++ b/modules/control/rc.c<br></div><div>@@ -1891,7 +1891,6 @@ error:<br></div><div> }<br></div><div> net_ListenClose( pi_socket );<br></div><div> free( psz_unix_path );<br></div><div>- vlc_mutex_destroy( &p_sys->status_lock );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -1923,7 +1922,6 @@ static void Deactivate( vlc_object_t *p_this )<br></div><div> free( p_sys->psz_unix_path );<br></div><div> }<br></div><div> #endif<br></div><div>- vlc_mutex_destroy( &p_sys->status_lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/demux/adaptive/PlaylistManager.cpp <br></div><div>b/modules/demux/adaptive/PlaylistManager.cpp<br></div><div>index a8bce7aca1..c0d3c9a8e1 100644<br></div><div>--- a/modules/demux/adaptive/PlaylistManager.cpp<br></div><div>+++ b/modules/demux/adaptive/PlaylistManager.cpp<br></div><div>@@ -90,10 +90,7 @@ PlaylistManager::~PlaylistManager ()<br></div><div> delete logic;<br></div><div> delete resources;<br></div><div> vlc_cond_destroy(&waitcond);<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div>- vlc_mutex_destroy(&demux.lock);<br></div><div> vlc_cond_destroy(&demux.cond);<br></div><div>- vlc_mutex_destroy(&cached.lock);<br></div><div> }<br></div><div> <br></div><div> void PlaylistManager::unsetPeriod()<br></div><div>diff --git a/modules/demux/adaptive/Streams.cpp <br></div><div>b/modules/demux/adaptive/Streams.cpp<br></div><div>index c4119da5d8..12c0a3183b 100644<br></div><div>--- a/modules/demux/adaptive/Streams.cpp<br></div><div>+++ b/modules/demux/adaptive/Streams.cpp<br></div><div>@@ -119,8 +119,6 @@ AbstractStream::~AbstractStream()<br></div><div> delete demuxer;<br></div><div> delete demuxersource;<br></div><div> delete fakeesout;<br></div><div>-<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> void AbstractStream::prepareRestart(bool b_discontinuity)<br></div><div>diff --git a/modules/demux/adaptive/encryption/Keyring.cpp <br></div><div>b/modules/demux/adaptive/encryption/Keyring.cpp<br></div><div>index bd34f3c7ed..95613b1a12 100644<br></div><div>--- a/modules/demux/adaptive/encryption/Keyring.cpp<br></div><div>+++ b/modules/demux/adaptive/encryption/Keyring.cpp<br></div><div>@@ -39,7 +39,6 @@ Keyring::Keyring(vlc_object_t *obj_)<br></div><div> <br></div><div> Keyring::~Keyring()<br></div><div> {<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> KeyringKey Keyring::getKey(SharedResources *resources, const <br></div><div>std::string &uri)<br></div><div>diff --git a/modules/demux/adaptive/http/Chunk.cpp <br></div><div>b/modules/demux/adaptive/http/Chunk.cpp<br></div><div>index 3ec89fd4a1..384c640cf1 100644<br></div><div>--- a/modules/demux/adaptive/http/Chunk.cpp<br></div><div>+++ b/modules/demux/adaptive/http/Chunk.cpp<br></div><div>@@ -157,7 +157,6 @@ HTTPChunkSource::~HTTPChunkSource()<br></div><div> {<br></div><div> if(connection)<br></div><div> connection->setUsed(false);<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> bool HTTPChunkSource::init(const std::string &url)<br></div><div>diff --git a/modules/demux/adaptive/http/Downloader.cpp <br></div><div>b/modules/demux/adaptive/http/Downloader.cpp<br></div><div>index 7d0ec6e741..f2f96c4e8c 100644<br></div><div>--- a/modules/demux/adaptive/http/Downloader.cpp<br></div><div>+++ b/modules/demux/adaptive/http/Downloader.cpp<br></div><div>@@ -58,7 +58,6 @@ Downloader::~Downloader()<br></div><div> <br></div><div> if(thread_handle_valid)<br></div><div> vlc_join(thread_handle, NULL);<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> vlc_cond_destroy(&waitcond);<br></div><div> }<br></div><div> void Downloader::schedule(HTTPChunkBufferedSource *source)<br></div><div>diff --git a/modules/demux/adaptive/http/HTTPConnectionManager.cpp <br></div><div>b/modules/demux/adaptive/http/HTTPConnectionManager.cpp<br></div><div>index 96967afd76..d1c5e556ec 100644<br></div><div>--- a/modules/demux/adaptive/http/HTTPConnectionManager.cpp<br></div><div>+++ b/modules/demux/adaptive/http/HTTPConnectionManager.cpp<br></div><div>@@ -74,7 +74,6 @@ HTTPConnectionManager::~HTTPConnectionManager ()<br></div><div> delete downloader;<br></div><div> delete factory;<br></div><div> this->closeAllConnections();<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> void HTTPConnectionManager::closeAllConnections ()<br></div><div>diff --git <br></div><div>a/modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp <br></div><div>b/modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp<br></div><div>index ff4f7a7821..9afdead977 100644<br></div><div>--- a/modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp<br></div><div>+++ b/modules/demux/adaptive/logic/NearOptimalAdaptationLogic.cpp<br></div><div>@@ -60,7 +60,6 @@ <br></div><div>NearOptimalAdaptationLogic::NearOptimalAdaptationLogic(vlc_object_t <br></div><div>*obj)<br></div><div> <br></div><div> NearOptimalAdaptationLogic::~NearOptimalAdaptationLogic()<br></div><div> {<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> BaseRepresentation *<br></div><div>diff --git a/modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp <br></div><div>b/modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp<br></div><div>index c81b40b59c..81f171f372 100644<br></div><div>--- a/modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp<br></div><div>+++ b/modules/demux/adaptive/logic/PredictiveAdaptationLogic.cpp<br></div><div>@@ -63,7 +63,6 @@ <br></div><div>PredictiveAdaptationLogic::PredictiveAdaptationLogic(vlc_object_t *obj)<br></div><div> <br></div><div> PredictiveAdaptationLogic::~PredictiveAdaptationLogic()<br></div><div> {<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> BaseRepresentation <br></div><div>*PredictiveAdaptationLogic::getNextRepresentation(BaseAdaptationSet <br></div><div>*adaptSet, BaseRepresentation *prevRep)<br></div><div>diff --git a/modules/demux/adaptive/logic/RateBasedAdaptationLogic.cpp <br></div><div>b/modules/demux/adaptive/logic/RateBasedAdaptationLogic.cpp<br></div><div>index bb7b6e9f73..2885110f83 100644<br></div><div>--- a/modules/demux/adaptive/logic/RateBasedAdaptationLogic.cpp<br></div><div>+++ b/modules/demux/adaptive/logic/RateBasedAdaptationLogic.cpp<br></div><div>@@ -49,7 +49,6 @@ RateBasedAdaptationLogic::RateBasedAdaptationLogic <br></div><div>(vlc_object_t *obj) :<br></div><div> <br></div><div> RateBasedAdaptationLogic::~RateBasedAdaptationLogic()<br></div><div> {<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> BaseRepresentation <br></div><div>*RateBasedAdaptationLogic::getNextRepresentation(BaseAdaptationSet <br></div><div>*adaptSet, BaseRepresentation *currep)<br></div><div>diff --git a/modules/demux/adaptive/plumbing/FakeESOut.cpp <br></div><div>b/modules/demux/adaptive/plumbing/FakeESOut.cpp<br></div><div>index 052191d3e0..fec642e385 100644<br></div><div>--- a/modules/demux/adaptive/plumbing/FakeESOut.cpp<br></div><div>+++ b/modules/demux/adaptive/plumbing/FakeESOut.cpp<br></div><div>@@ -165,7 +165,6 @@ FakeESOut::~FakeESOut()<br></div><div> gc();<br></div><div> <br></div><div> delete commandsqueue;<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> void FakeESOut::resetTimestamps()<br></div><div>diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp<br></div><div>index 6fde3aa8c3..99f1cd67d1 100644<br></div><div>--- a/modules/demux/mkv/demux.cpp<br></div><div>+++ b/modules/demux/mkv/demux.cpp<br></div><div>@@ -45,8 +45,6 @@ demux_sys_t::~demux_sys_t()<br></div><div> <br></div><div> while( titles.size() )<br></div><div> { vlc_input_title_Delete( titles.back() ); titles.pop_back();}<br></div><div>-<br></div><div>- vlc_mutex_destroy( &lock_demuxer );<br></div><div> }<br></div><div> <br></div><div> <br></div><div>diff --git a/modules/demux/mkv/events.cpp b/modules/demux/mkv/events.cpp<br></div><div>index 93cf963340..0a6d7003a4 100644<br></div><div>--- a/modules/demux/mkv/events.cpp<br></div><div>+++ b/modules/demux/mkv/events.cpp<br></div><div>@@ -43,7 +43,6 @@ event_thread_t::~event_thread_t()<br></div><div> {<br></div><div> ResetPci();<br></div><div> vlc_cond_destroy( &wait );<br></div><div>- vlc_mutex_destroy( &lock );<br></div><div> }<br></div><div> <br></div><div> void event_thread_t::SetPci(const pci_t *data)<br></div><div>diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c<br></div><div>index d17012744a..3bd6d0e001 100644<br></div><div>--- a/modules/demux/mpeg/ts.c<br></div><div>+++ b/modules/demux/mpeg/ts.c<br></div><div>@@ -417,14 +417,12 @@ static int Open( vlc_object_t *p_this )<br></div><div> patpid = GetPID(p_sys, 0);<br></div><div> if ( !PIDSetup( p_demux, TYPE_PAT, patpid, NULL ) )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &p_sys->csa_lock );<br></div><div> free( p_sys );<br></div><div> return VLC_ENOMEM;<br></div><div> }<br></div><div> if( !ts_psi_PAT_Attach( patpid, p_demux ) )<br></div><div> {<br></div><div> PIDRelease( p_demux, patpid );<br></div><div>- vlc_mutex_destroy( &p_sys->csa_lock );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -586,8 +584,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> vlc_stream_Delete( p_sys->arib.b25stream );<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->csa_lock );<br></div><div>-<br></div><div> /* Release all non default pids */<br></div><div> ts_pid_list_Release( p_demux, &p_sys->pids );<br></div><div> <br></div><div>diff --git a/modules/gui/ncurses.c b/modules/gui/ncurses.c<br></div><div>index 8e3156050b..e91ac5927c 100644<br></div><div>--- a/modules/gui/ncurses.c<br></div><div>+++ b/modules/gui/ncurses.c<br></div><div>@@ -1760,7 +1760,6 @@ static void Close(vlc_object_t *p_this)<br></div><div> endwin(); /* Close the ncurses interface */<br></div><div> <br></div><div> vlc_LogSet(vlc_object_instance(p_this), NULL, NULL);<br></div><div>- vlc_mutex_destroy(&sys->msg_lock);<br></div><div> for(unsigned i = 0; i < sizeof sys->msgs / sizeof *sys->msgs; i++) <br></div><div>{<br></div><div> if (sys->msgs[i].item)<br></div><div> msg_Free(sys->msgs[i].item);<br></div><div>diff --git a/modules/gui/qt/medialibrary/mlbasemodel.cpp <br></div><div>b/modules/gui/qt/medialibrary/mlbasemodel.cpp<br></div><div>index faec9d28a7..3ba327f171 100644<br></div><div>--- a/modules/gui/qt/medialibrary/mlbasemodel.cpp<br></div><div>+++ b/modules/gui/qt/medialibrary/mlbasemodel.cpp<br></div><div>@@ -44,7 +44,6 @@ MLBaseModel::MLBaseModel(QObject *parent)<br></div><div> <br></div><div> MLBaseModel::~MLBaseModel()<br></div><div> {<br></div><div>- vlc_mutex_destroy( &m_item_lock );<br></div><div> }<br></div><div> <br></div><div> void MLBaseModel::sortByColumn(QByteArray name, Qt::SortOrder order)<br></div><div>diff --git a/modules/gui/skins2/commands/async_queue.cpp <br></div><div>b/modules/gui/skins2/commands/async_queue.cpp<br></div><div>index bf601b9bad..fab0741c65 100644<br></div><div>--- a/modules/gui/skins2/commands/async_queue.cpp<br></div><div>+++ b/modules/gui/skins2/commands/async_queue.cpp<br></div><div>@@ -45,7 +45,6 @@ AsyncQueue::AsyncQueue( intf_thread_t *pIntf ): <br></div><div>SkinObject( pIntf ),<br></div><div> AsyncQueue::~AsyncQueue()<br></div><div> {<br></div><div> delete( m_pTimer );<br></div><div>- vlc_mutex_destroy( &m_lock );<br></div><div> }<br></div><div> <br></div><div> <br></div><div>diff --git a/modules/gui/skins2/commands/cmd_callbacks.hpp <br></div><div>b/modules/gui/skins2/commands/cmd_callbacks.hpp<br></div><div>index f9c8d96638..79fb556aa3 100644<br></div><div>--- a/modules/gui/skins2/commands/cmd_callbacks.hpp<br></div><div>+++ b/modules/gui/skins2/commands/cmd_callbacks.hpp<br></div><div>@@ -71,7 +71,6 @@ public:<br></div><div> virtual ~CmdExecuteBlock()<br></div><div> {<br></div><div> vlc_cond_destroy( &m_wait );<br></div><div>- vlc_mutex_destroy( &m_lock );<br></div><div> }<br></div><div> <br></div><div> static void executeWait( const CmdGenericPtr& rcCommand )<br></div><div>diff --git a/modules/hw/d3d11/d3d11_surface.c b/modules/hw/d3d11/d3d11_surface.c<br></div><div>index 9762ad3fac..6534d309df 100644<br></div><div>--- a/modules/hw/d3d11/d3d11_surface.c<br></div><div>+++ b/modules/hw/d3d11/d3d11_surface.c<br></div><div>@@ -830,7 +830,6 @@ void D3D11CloseConverter( vlc_object_t *obj )<br></div><div> D3D11_ReleaseProcessor( &p_sys->d3d_proc );<br></div><div> #endif<br></div><div> CopyCleanCache(&p_sys->cache);<br></div><div>- vlc_mutex_destroy(&p_sys->staging_lock);<br></div><div> if (p_sys->staging)<br></div><div> ID3D11Texture2D_Release(p_sys->staging);<br></div><div> }<br></div><div>diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c<br></div><div>index e334853b2f..a10ac5637a 100644<br></div><div>--- a/modules/hw/mmal/codec.c<br></div><div>+++ b/modules/hw/mmal/codec.c<br></div><div>@@ -586,8 +586,6 @@ static void CloseDecoder(vlc_object_t *p_this)<br></div><div> <br></div><div> hw_mmal_port_pool_ref_release(sys->ppr, false);<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->pic_lock);<br></div><div>-<br></div><div> if (sys->vctx)<br></div><div> vlc_video_context_Release(sys->vctx);<br></div><div> <br></div><div>diff --git a/modules/hw/mmal/converter.c b/modules/hw/mmal/converter.c<br></div><div>index 1d161c7847..f49f1f0202 100644<br></div><div>--- a/modules/hw/mmal/converter.c<br></div><div>+++ b/modules/hw/mmal/converter.c<br></div><div>@@ -782,8 +782,6 @@ void CloseConverter(vlc_object_t * obj)<br></div><div> if (sys->dec_dev)<br></div><div> vlc_decoder_device_Release(sys->dec_dev);<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div>-<br></div><div> p_filter->p_sys = NULL;<br></div><div> free(sys);<br></div><div> }<br></div><div>diff --git a/modules/hw/mmal/mmal_cma.c b/modules/hw/mmal/mmal_cma.c<br></div><div>index 600dc0136c..70567db4f4 100644<br></div><div>--- a/modules/hw/mmal/mmal_cma.c<br></div><div>+++ b/modules/hw/mmal/mmal_cma.c<br></div><div>@@ -98,7 +98,6 @@ static void cma_pool_fixed_delete(cma_pool_fixed_t * const p)<br></div><div> free(p->name);<br></div><div> <br></div><div> vlc_cond_destroy(&p->flight_cond);<br></div><div>- vlc_mutex_destroy(&p->lock);<br></div><div> free(p);<br></div><div> <br></div><div> // Inform our container that we are dead (if it cares)<br></div><div>diff --git a/modules/hw/mmal/mmal_picture.c <br></div><div>b/modules/hw/mmal/mmal_picture.c<br></div><div>index 6f6a0727f1..915ee063c8 100644<br></div><div>--- a/modules/hw/mmal/mmal_picture.c<br></div><div>+++ b/modules/hw/mmal/mmal_picture.c<br></div><div>@@ -1201,8 +1201,6 @@ static void <br></div><div>hw_mmal_vzc_pool_delete(vzc_pool_ctl_t * const pc)<br></div><div> if (pc->buf_pool != NULL)<br></div><div> mmal_pool_destroy(pc->buf_pool);<br></div><div> <br></div><div>- vlc_mutex_destroy(&pc->lock);<br></div><div>-<br></div><div> // memset(pc, 0xba, sizeof(*pc)); // Zap for (hopefully) faster crash<br></div><div> free (pc);<br></div><div> }<br></div><div>diff --git a/modules/hw/mmal/vout.c b/modules/hw/mmal/vout.c<br></div><div>index 9204626b55..ee48a6a552 100644<br></div><div>--- a/modules/hw/mmal/vout.c<br></div><div>+++ b/modules/hw/mmal/vout.c<br></div><div>@@ -1071,8 +1071,6 @@ static void CloseMmalVout(vout_display_t * vd)<br></div><div> <br></div><div> hw_mmal_vzc_pool_release(sys->vzc);<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->manage_mutex);<br></div><div>-<br></div><div> if (sys->native_interlaced) {<br></div><div> if (vc_gencmd(response, sizeof(response), "hvs_update_fields 0") < 0 ||<br></div><div> response[18] != '0')<br></div><div>diff --git a/modules/keystore/memory.c b/modules/keystore/memory.c<br></div><div>index 527433db9a..7981bc7ffc 100644<br></div><div>--- a/modules/keystore/memory.c<br></div><div>+++ b/modules/keystore/memory.c<br></div><div>@@ -147,7 +147,6 @@ Close(vlc_object_t *p_this)<br></div><div> vlc_keystore_sys *p_sys = p_keystore->p_sys;<br></div><div> <br></div><div> ks_list_free(&p_sys->list);<br></div><div>- vlc_mutex_destroy(&p_keystore->p_sys->lock);<br></div><div> free(p_sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/lua/extension.c b/modules/lua/extension.c<br></div><div>index 5ff93d142d..b4ea69ddb9 100644<br></div><div>--- a/modules/lua/extension.c<br></div><div>+++ b/modules/lua/extension.c<br></div><div>@@ -176,8 +176,6 @@ void Close_Extension( vlc_object_t *p_this )<br></div><div> free( p_ext->psz_version );<br></div><div> free( p_ext->p_icondata );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_ext->p_sys->running_lock );<br></div><div>- vlc_mutex_destroy( &p_ext->p_sys->command_lock );<br></div><div> vlc_cond_destroy( &p_ext->p_sys->wait );<br></div><div> vlc_timer_destroy( p_ext->p_sys->timer );<br></div><div> <br></div><div>@@ -185,8 +183,6 @@ void Close_Extension( vlc_object_t *p_this )<br></div><div> free( p_ext );<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_mgr->lock );<br></div><div>-<br></div><div> ARRAY_RESET( p_mgr->extensions );<br></div><div> }<br></div><div> <br></div><div>@@ -488,8 +484,6 @@ exit:<br></div><div> free( p_ext->psz_description );<br></div><div> free( p_ext->psz_shortdescription );<br></div><div> free( p_ext->psz_version );<br></div><div>- vlc_mutex_destroy( &p_ext->p_sys->command_lock );<br></div><div>- vlc_mutex_destroy( &p_ext->p_sys->running_lock );<br></div><div> vlc_cond_destroy( &p_ext->p_sys->wait );<br></div><div> free( p_ext->p_sys );<br></div><div> free( p_ext );<br></div><div>diff --git a/modules/lua/libs/dialog.c b/modules/lua/libs/dialog.c<br></div><div>index 927a0a4d9e..8af0409786 100644<br></div><div>--- a/modules/lua/libs/dialog.c<br></div><div>+++ b/modules/lua/libs/dialog.c<br></div><div>@@ -287,7 +287,6 @@ static int vlclua_dialog_delete( lua_State *L )<br></div><div> ARRAY_RESET( p_dlg->widgets );<br></div><div> <br></div><div> /* Note: At this point, the UI must not use these resources */<br></div><div>- vlc_mutex_destroy( &p_dlg->lock );<br></div><div> vlc_cond_destroy( &p_dlg->cond );<br></div><div> free( p_dlg );<br></div><div> <br></div><div>diff --git a/modules/lua/services_discovery.c b/modules/lua/services_discovery.c<br></div><div>index 2bbffe203e..8b5aebdade 100644<br></div><div>--- a/modules/lua/services_discovery.c<br></div><div>+++ b/modules/lua/services_discovery.c<br></div><div>@@ -240,7 +240,6 @@ int Open_LuaSD( vlc_object_t *p_this )<br></div><div> {<br></div><div> TAB_CLEAN( p_sys->i_query, p_sys->ppsz_query );<br></div><div> vlc_cond_destroy( &p_sys->cond );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> goto error;<br></div><div> }<br></div><div> return VLC_SUCCESS;<br></div><div>@@ -269,7 +268,6 @@ void Close_LuaSD( vlc_object_t *p_this )<br></div><div> TAB_CLEAN( p_sys->i_query, p_sys->ppsz_query );<br></div><div> <br></div><div> vlc_cond_destroy( &p_sys->cond );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys->psz_filename );<br></div><div> lua_close( p_sys->L );<br></div><div> free( p_sys );<br></div><div>diff --git a/modules/misc/audioscrobbler.c b/modules/misc/audioscrobbler.c<br></div><div>index f6d38879f6..ce3ca4161f 100644<br></div><div>--- a/modules/misc/audioscrobbler.c<br></div><div>+++ b/modules/misc/audioscrobbler.c<br></div><div>@@ -422,7 +422,6 @@ fail:<br></div><div> if (p_sys->player_listener)<br></div><div> {<br></div><div> vlc_cond_destroy(&p_sys->wait);<br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div> vlc_player_RemoveListener(player, p_sys->player_listener);<br></div><div> }<br></div><div> vlc_playlist_RemoveListener(playlist, p_sys->playlist_listener);<br></div><div>@@ -452,7 +451,6 @@ static void Close(vlc_object_t *p_this)<br></div><div> vlc_UrlClean(&p_sys->p_nowp_url);<br></div><div> <br></div><div> vlc_cond_destroy(&p_sys->wait);<br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div> <br></div><div> vlc_playlist_Lock(playlist);<br></div><div> vlc_player_RemoveListener(<br></div><div>diff --git a/modules/misc/fingerprinter.c b/modules/misc/fingerprinter.c<br></div><div>index 0481afb9ce..ebf28147ee 100644<br></div><div>--- a/modules/misc/fingerprinter.c<br></div><div>+++ b/modules/misc/fingerprinter.c<br></div><div>@@ -298,7 +298,6 @@ static void CleanSys( fingerprinter_sys_t *p_sys )<br></div><div> for ( size_t i = 0; i < vlc_array_count( &p_sys->incoming.queue ); <br></div><div>i++ )<br></div><div> fingerprint_request_Delete( vlc_array_item_at_index( <br></div><div>&p_sys->incoming.queue, i ) );<br></div><div> vlc_array_clear( &p_sys->incoming.queue );<br></div><div>- vlc_mutex_destroy( &p_sys->incoming.lock );<br></div><div> <br></div><div> for ( size_t i = 0; i < vlc_array_count( &p_sys->processing.queue <br></div><div>); i++ )<br></div><div> fingerprint_request_Delete( vlc_array_item_at_index( <br></div><div>&p_sys->processing.queue, i ) );<br></div><div>@@ -308,7 +307,6 @@ static void CleanSys( fingerprinter_sys_t *p_sys )<br></div><div> for ( size_t i = 0; i < vlc_array_count( &p_sys->results.queue ); <br></div><div>i++ )<br></div><div> fingerprint_request_Delete( vlc_array_item_at_index( <br></div><div>&p_sys->results.queue, i ) );<br></div><div> vlc_array_clear( &p_sys->results.queue );<br></div><div>- vlc_mutex_destroy( &p_sys->results.lock );<br></div><div> <br></div><div> vlc_player_Lock(p_sys->player);<br></div><div> vlc_player_RemoveListener(p_sys->player, p_sys->listener_id);<br></div><div>diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c<br></div><div>index d90f754357..9b4a900b50 100644<br></div><div>--- a/modules/misc/rtsp.c<br></div><div>+++ b/modules/misc/rtsp.c<br></div><div>@@ -462,8 +462,6 @@ static void MediaDel( vod_t *p_vod, vod_media_t *p_media )<br></div><div> MediaDelES( p_vod, p_media, &p_media->es[0]->fmt );<br></div><div> TAB_CLEAN( p_media->i_es, p_media->es );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_media->lock );<br></div><div>-<br></div><div> free( p_media );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/misc/securetransport.c <br></div><div>b/modules/misc/securetransport.c<br></div><div>index fe24951691..3b14f0399a 100644<br></div><div>--- a/modules/misc/securetransport.c<br></div><div>+++ b/modules/misc/securetransport.c<br></div><div>@@ -619,8 +619,6 @@ static int st_SessionShutdown (vlc_tls_t *session, <br></div><div>bool duplex) {<br></div><div> <br></div><div> msg_Dbg(sys->obj, "shutdown TLS session");<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div>-<br></div><div> OSStatus ret = noErr;<br></div><div> VLC_UNUSED(duplex);<br></div><div> <br></div><div>diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c<br></div><div>index dc94d12038..042074263c 100644<br></div><div>--- a/modules/mux/mpeg/ts.c<br></div><div>+++ b/modules/mux/mpeg/ts.c<br></div><div>@@ -769,7 +769,6 @@ static void Close( vlc_object_t * p_this )<br></div><div> var_DelCallback( p_mux, SOUT_CFG_PREFIX "csa2-ck", <br></div><div>ChangeKeyCallback, NULL );<br></div><div> var_DelCallback( p_mux, SOUT_CFG_PREFIX "csa-use", <br></div><div>ActiveKeyCallback, NULL );<br></div><div> csa_Delete( p_sys->csa );<br></div><div>- vlc_mutex_destroy( &p_sys->csa_lock );<br></div><div> }<br></div><div> <br></div><div> for (int i = 0; i < MAX_SDT_DESC; i++ )<br></div><div>diff --git a/modules/notify/notify.c b/modules/notify/notify.c<br></div><div>index 4f6a7e9b85..64017cc8f8 100644<br></div><div>--- a/modules/notify/notify.c<br></div><div>+++ b/modules/notify/notify.c<br></div><div>@@ -170,7 +170,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> g_object_unref( p_sys->notification );<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> notify_uninit();<br></div><div> }<br></div><div>diff --git a/modules/services_discovery/podcast.c <br></div><div>b/modules/services_discovery/podcast.c<br></div><div>index a29996d59b..e89a757907 100644<br></div><div>--- a/modules/services_discovery/podcast.c<br></div><div>+++ b/modules/services_discovery/podcast.c<br></div><div>@@ -151,7 +151,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> var_DelCallback( pl, "podcast-request", Request, p_sys );<br></div><div> var_DelCallback( pl, "podcast-urls", UrlsChange, p_sys );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free (p_sys);<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -173,7 +172,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> var_DelCallback( pl, "podcast-urls", UrlsChange, p_sys );<br></div><div> var_DelCallback( pl, "podcast-request", Request, p_sys );<br></div><div> vlc_cond_destroy( &p_sys->wait );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> for( int i = 0; i < p_sys->i_urls; i++ )<br></div><div> free( p_sys->ppsz_urls[i] );<br></div><div>diff --git a/modules/spu/audiobargraph_v.c b/modules/spu/audiobargraph_v.c<br></div><div>index 06d84d5f8d..de3f9627a6 100644<br></div><div>--- a/modules/spu/audiobargraph_v.c<br></div><div>+++ b/modules/spu/audiobargraph_v.c<br></div><div>@@ -602,8 +602,6 @@ static void Close(vlc_object_t *p_this)<br></div><div> if (p_sys->p_blend)<br></div><div> filter_DeleteBlend(p_sys->p_blend);<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_sys->lock);<br></div><div>-<br></div><div> if (p_sys->p_BarGraph.p_pic)<br></div><div> picture_Release(p_sys->p_BarGraph.p_pic);<br></div><div> <br></div><div>diff --git a/modules/spu/dynamicoverlay/dynamicoverlay.c <br></div><div>b/modules/spu/dynamicoverlay/dynamicoverlay.c<br></div><div>index 0eae0f00ee..b038a2d66a 100644<br></div><div>--- a/modules/spu/dynamicoverlay/dynamicoverlay.c<br></div><div>+++ b/modules/spu/dynamicoverlay/dynamicoverlay.c<br></div><div>@@ -148,7 +148,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, "overlay-input", AdjustCallback, p_sys <br></div><div>);<br></div><div> var_DelCallback( p_filter, "overlay-output", AdjustCallback, p_sys <br></div><div>);<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys->psz_inputfile );<br></div><div> free( p_sys->psz_outputfile );<br></div><div> free( p_sys );<br></div><div>diff --git a/modules/spu/logo.c b/modules/spu/logo.c<br></div><div>index f72c841035..fa1ee0307c 100644<br></div><div>--- a/modules/spu/logo.c<br></div><div>+++ b/modules/spu/logo.c<br></div><div>@@ -321,7 +321,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> if( p_sys->p_blend )<br></div><div> filter_DeleteBlend( p_sys->p_blend );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> LogoListUnload( &p_sys->list );<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/modules/spu/marq.c b/modules/spu/marq.c<br></div><div>index 44060a1993..c370c5322d 100644<br></div><div>--- a/modules/spu/marq.c<br></div><div>+++ b/modules/spu/marq.c<br></div><div>@@ -255,7 +255,6 @@ static void DestroyFilter( vlc_object_t *p_this )<br></div><div> DEL_VAR( "marq-color" );<br></div><div> DEL_VAR( "marq-size" );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> text_style_Delete( p_sys->p_style );<br></div><div> free( p_sys->format );<br></div><div> free( p_sys->filepath );<br></div><div>diff --git a/modules/spu/mosaic.c b/modules/spu/mosaic.c<br></div><div>index e4a876f842..b06ca3fd6f 100644<br></div><div>--- a/modules/spu/mosaic.c<br></div><div>+++ b/modules/spu/mosaic.c<br></div><div>@@ -421,7 +421,6 @@ static void DestroyFilter( vlc_object_t *p_this )<br></div><div> p_sys->i_offsets_length = 0;<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/spu/rss.c b/modules/spu/rss.c<br></div><div>index 2569da02d1..67d3cab920 100644<br></div><div>--- a/modules/spu/rss.c<br></div><div>+++ b/modules/spu/rss.c<br></div><div>@@ -308,10 +308,7 @@ static int CreateFilter( vlc_object_t *p_this )<br></div><div> <br></div><div> /* Create and arm the timer */<br></div><div> if( vlc_timer_create( &p_sys->timer, Fetch, p_filter ) )<br></div><div>- {<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> goto error;<br></div><div>- }<br></div><div> vlc_timer_schedule_asap( p_sys->timer, vlc_tick_from_sec(i_ttl) );<br></div><div> <br></div><div> free( psz_urls );<br></div><div>@@ -334,7 +331,6 @@ static void DestroyFilter( vlc_object_t *p_this )<br></div><div> filter_sys_t *p_sys = p_filter->p_sys;<br></div><div> <br></div><div> vlc_timer_destroy( p_sys->timer );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> text_style_Delete( p_sys->p_style );<br></div><div> free( p_sys->psz_marquee );<br></div><div>diff --git a/modules/spu/subsdelay.c b/modules/spu/subsdelay.c<br></div><div>index 8b961e7de2..70b2e9a332 100644<br></div><div>--- a/modules/spu/subsdelay.c<br></div><div>+++ b/modules/spu/subsdelay.c<br></div><div>@@ -518,8 +518,6 @@ static void SubsdelayHeapDestroy( subsdelay_heap_t *p_heap )<br></div><div> }<br></div><div> <br></div><div> SubsdelayHeapUnlock( p_heap );<br></div><div>-<br></div><div>- vlc_mutex_destroy( &p_heap->lock );<br></div><div> }<br></div><div> <br></div><div> /*****************************************************************************<br></div><div>diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c<br></div><div>index f5fdd94636..9b76980147 100644<br></div><div>--- a/modules/stream_filter/decomp.c<br></div><div>+++ b/modules/stream_filter/decomp.c<br></div><div>@@ -328,7 +328,6 @@ static int Open (stream_t *stream, const char *path)<br></div><div> {<br></div><div> if (p_sys->pid != -1)<br></div><div> while (waitpid (p_sys->pid, &(int){ 0 }, 0) == -1);<br></div><div>- vlc_mutex_destroy (&p_sys->lock);<br></div><div> vlc_cond_destroy (&p_sys->wait);<br></div><div> free (p_sys);<br></div><div> return ret;<br></div><div>@@ -361,7 +360,6 @@ static void Close (vlc_object_t *obj)<br></div><div> while (waitpid (p_sys->pid, &status, 0) == -1);<br></div><div> msg_Dbg (obj, "exit status %d", status);<br></div><div> <br></div><div>- vlc_mutex_destroy (&p_sys->lock);<br></div><div> vlc_cond_destroy (&p_sys->wait);<br></div><div> free (p_sys);<br></div><div> }<br></div><div>diff --git a/modules/stream_filter/hds/hds.c b/modules/stream_filter/hds/hds.c<br></div><div>index 1b2290ee03..88d1e76522 100644<br></div><div>--- a/modules/stream_filter/hds/hds.c<br></div><div>+++ b/modules/stream_filter/hds/hds.c<br></div><div>@@ -1222,9 +1222,7 @@ static void cleanup_Manifest( manifest_t *m )<br></div><div> <br></div><div> static void cleanup_threading( hds_stream_t *stream )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &stream->dl_lock );<br></div><div> vlc_cond_destroy( &stream->dl_cond );<br></div><div>- vlc_mutex_destroy( &stream->abst_lock );<br></div><div> }<br></div><div> <br></div><div> static void write_int_24( uint8_t *p, uint32_t val )<br></div><div>diff --git a/modules/stream_filter/prefetch.c b/modules/stream_filter/prefetch.c<br></div><div>index 2f610c65bd..01b7e2c681 100644<br></div><div>--- a/modules/stream_filter/prefetch.c<br></div><div>+++ b/modules/stream_filter/prefetch.c<br></div><div>@@ -496,7 +496,6 @@ static int Open(vlc_object_t *obj)<br></div><div> {<br></div><div> vlc_cond_destroy(&sys->wait_space);<br></div><div> vlc_cond_destroy(&sys->wait_data);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> vlc_interrupt_destroy(sys->interrupt);<br></div><div> goto error;<br></div><div> }<br></div><div>@@ -529,7 +528,6 @@ static void Close (vlc_object_t *obj)<br></div><div> vlc_interrupt_destroy(sys->interrupt);<br></div><div> vlc_cond_destroy(&sys->wait_space);<br></div><div> vlc_cond_destroy(&sys->wait_data);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> <br></div><div> while(sys->controls)<br></div><div> {<br></div><div>diff --git a/modules/stream_out/chromecast/cast.cpp <br></div><div>b/modules/stream_out/chromecast/cast.cpp<br></div><div>index 9f909a9de1..97b6368295 100644<br></div><div>--- a/modules/stream_out/chromecast/cast.cpp<br></div><div>+++ b/modules/stream_out/chromecast/cast.cpp<br></div><div>@@ -113,7 +113,6 @@ struct sout_stream_sys_t<br></div><div> <br></div><div> ~sout_stream_sys_t()<br></div><div> {<br></div><div>- vlc_mutex_destroy(&lock);<br></div><div> }<br></div><div> <br></div><div> bool canDecodeVideo( vlc_fourcc_t i_codec ) const;<br></div><div>diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c<br></div><div>index 3c2363305a..b0d640436f 100644<br></div><div>--- a/modules/stream_out/rtp.c<br></div><div>+++ b/modules/stream_out/rtp.c<br></div><div>@@ -553,9 +553,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> {<br></div><div> msg_Err( p_stream, "unsupported muxer type for RTP (only TS/PS)" );<br></div><div> free( psz );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_sdp );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_ts );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_es );<br></div><div> free( p_sys->psz_vod_session );<br></div><div> free( p_sys->psz_destination );<br></div><div> free( p_sys );<br></div><div>@@ -570,9 +567,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> {<br></div><div> msg_Err( p_stream, "cannot create muxer" );<br></div><div> sout_AccessOutDelete( p_sys->p_grab );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_sdp );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_ts );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_es );<br></div><div> free( p_sys->psz_vod_session );<br></div><div> free( p_sys->psz_destination );<br></div><div> free( p_sys );<br></div><div>@@ -662,10 +656,6 @@ static void Close( vlc_object_t * p_this )<br></div><div> if( p_sys->rtsp != NULL )<br></div><div> RtspUnsetup( p_sys->rtsp );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock_sdp );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_ts );<br></div><div>- vlc_mutex_destroy( &p_sys->lock_es );<br></div><div>-<br></div><div> if( p_sys->p_httpd_file )<br></div><div> httpd_FileDelete( p_sys->p_httpd_file );<br></div><div> <br></div><div>@@ -1251,8 +1241,6 @@ static void Del( sout_stream_t *p_stream, void *_id )<br></div><div> srtp_destroy( id->srtp );<br></div><div> #endif<br></div><div> <br></div><div>- vlc_mutex_destroy( &id->lock_sink );<br></div><div>-<br></div><div> /* Update SDP (sap/file) */<br></div><div> if( p_sys->b_export_sap ) SapSetup( p_stream );<br></div><div> if( p_sys->psz_sdp_file != NULL ) FileSetup( p_stream );<br></div><div>diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c<br></div><div>index 6161f6a795..d62ccebccd 100644<br></div><div>--- a/modules/stream_out/rtsp.c<br></div><div>+++ b/modules/stream_out/rtsp.c<br></div><div>@@ -151,8 +151,6 @@ void RtspUnsetup( rtsp_stream_t *rtsp )<br></div><div> vlc_timer_destroy(rtsp->timer);<br></div><div> <br></div><div> free( rtsp->psz_path );<br></div><div>- vlc_mutex_destroy( &rtsp->lock );<br></div><div>-<br></div><div> free( rtsp );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/stream_out/sdi/DBMSDIOutput.cpp <br></div><div>b/modules/stream_out/sdi/DBMSDIOutput.cpp<br></div><div>index 19de3288e1..9c56b8f02b 100644<br></div><div>--- a/modules/stream_out/sdi/DBMSDIOutput.cpp<br></div><div>+++ b/modules/stream_out/sdi/DBMSDIOutput.cpp<br></div><div>@@ -92,7 +92,6 @@ DBMSDIOutput::~DBMSDIOutput()<br></div><div> p_card->Release();<br></div><div> <br></div><div> vlc_cond_destroy(&feeder.cond);<br></div><div>- vlc_mutex_destroy(&feeder.lock);<br></div><div> }<br></div><div> <br></div><div> AbstractStream *DBMSDIOutput::Add(const es_format_t *fmt)<br></div><div>diff --git a/modules/stream_out/sdi/SDIStream.cpp <br></div><div>b/modules/stream_out/sdi/SDIStream.cpp<br></div><div>index a196860c13..0e728c3adf 100644<br></div><div>--- a/modules/stream_out/sdi/SDIStream.cpp<br></div><div>+++ b/modules/stream_out/sdi/SDIStream.cpp<br></div><div>@@ -237,7 +237,6 @@ AbstractDecodedStream::~AbstractDecodedStream()<br></div><div> deinit();<br></div><div> es_format_Clean(&requestedoutput);<br></div><div> vlc_cond_destroy(&inputWait);<br></div><div>- vlc_mutex_destroy(&inputLock);<br></div><div> }<br></div><div> <br></div><div> void AbstractDecodedStream::deinit()<br></div><div>diff --git a/modules/stream_out/transcode/encoder/encoder.c <br></div><div>b/modules/stream_out/transcode/encoder/encoder.c<br></div><div>index e8ffb346ac..2c89332663 100644<br></div><div>--- a/modules/stream_out/transcode/encoder/encoder.c<br></div><div>+++ b/modules/stream_out/transcode/encoder/encoder.c<br></div><div>@@ -50,7 +50,6 @@ void transcode_encoder_delete( transcode_encoder_t <br></div><div>*p_enc )<br></div><div> {<br></div><div> block_ChainRelease( p_enc->p_buffers );<br></div><div> picture_fifo_Delete( p_enc->pp_pics );<br></div><div>- vlc_mutex_destroy( &p_enc->lock_out );<br></div><div> }<br></div><div> es_format_Clean( &p_enc->p_encoder->fmt_in );<br></div><div> es_format_Clean( &p_enc->p_encoder->fmt_out );<br></div><div>diff --git a/modules/stream_out/transcode/transcode.c <br></div><div>b/modules/stream_out/transcode/transcode.c<br></div><div>index c0303d1aba..fc842041dd 100644<br></div><div>--- a/modules/stream_out/transcode/transcode.c<br></div><div>+++ b/modules/stream_out/transcode/transcode.c<br></div><div>@@ -494,18 +494,12 @@ static void Close( vlc_object_t * p_this )<br></div><div> <br></div><div> transcode_encoder_config_clean( &p_sys->senc_cfg );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div> static void DeleteSoutStreamID( sout_stream_id_sys_t *id )<br></div><div> {<br></div><div>- if( id )<br></div><div>- {<br></div><div>- vlc_mutex_destroy(&id->fifo.lock);<br></div><div>- free( id );<br></div><div>- }<br></div><div>+ free( id );<br></div><div> }<br></div><div> <br></div><div> static void SendSpuToVideoCallback( void *cbdata, subpicture_t *p_subpicture )<br></div><div>diff --git a/modules/video_filter/alphamask.c b/modules/video_filter/alphamask.c<br></div><div>index 7268496010..001f37185c 100644<br></div><div>--- a/modules/video_filter/alphamask.c<br></div><div>+++ b/modules/video_filter/alphamask.c<br></div><div>@@ -135,7 +135,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "mask", MaskCallback,<br></div><div> p_filter );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->mask_lock );<br></div><div> if( p_sys->p_mask )<br></div><div> picture_Release( p_sys->p_mask );<br></div><div> <br></div><div>diff --git a/modules/video_filter/ball.c b/modules/video_filter/ball.c<br></div><div>index d4d8c26f55..563ff8bedc 100644<br></div><div>--- a/modules/video_filter/ball.c<br></div><div>+++ b/modules/video_filter/ball.c<br></div><div>@@ -332,8 +332,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, FILTER_PREFIX "edge-visible",<br></div><div> ballCallback, p_sys );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> image_HandlerDelete( p_sys->p_image );<br></div><div> <br></div><div> free( p_sys->p_smooth );<br></div><div>diff --git a/modules/video_filter/bluescreen.c <br></div><div>b/modules/video_filter/bluescreen.c<br></div><div>index 730af68da8..3fe83a1a5d 100644<br></div><div>--- a/modules/video_filter/bluescreen.c<br></div><div>+++ b/modules/video_filter/bluescreen.c<br></div><div>@@ -159,7 +159,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "vt", BluescreenCallback, <br></div><div>p_sys );<br></div><div> <br></div><div> free( p_sys->p_at );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/video_filter/erase.c b/modules/video_filter/erase.c<br></div><div>index 91a6b7bf89..7e6683b14e 100644<br></div><div>--- a/modules/video_filter/erase.c<br></div><div>+++ b/modules/video_filter/erase.c<br></div><div>@@ -196,7 +196,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "x", EraseCallback, p_sys );<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "y", EraseCallback, p_sys );<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "mask", EraseCallback, p_sys );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> free( p_filter->p_sys );<br></div><div> }<br></div><div>diff --git a/modules/video_filter/extract.c b/modules/video_filter/extract.c<br></div><div>index 9de5f80228..0e849642a9 100644<br></div><div>--- a/modules/video_filter/extract.c<br></div><div>+++ b/modules/video_filter/extract.c<br></div><div>@@ -157,7 +157,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> <br></div><div> var_DelCallback( p_filter, FILTER_PREFIX "component", ExtractCallback,<br></div><div> p_sys );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys->projection_matrix );<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/modules/video_filter/gradfun.c b/modules/video_filter/gradfun.c<br></div><div>index b17808465a..093d207523 100644<br></div><div>--- a/modules/video_filter/gradfun.c<br></div><div>+++ b/modules/video_filter/gradfun.c<br></div><div>@@ -169,7 +169,6 @@ static void Close(vlc_object_t *object)<br></div><div> var_DelCallback(filter, CFG_PREFIX "radius", Callback, NULL);<br></div><div> var_DelCallback(filter, CFG_PREFIX "strength", Callback, NULL);<br></div><div> aligned_free(sys->cfg.buf);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> free(sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/video_filter/gradient.c b/modules/video_filter/gradient.c<br></div><div>index 671334eb91..22675305f5 100644<br></div><div>--- a/modules/video_filter/gradient.c<br></div><div>+++ b/modules/video_filter/gradient.c<br></div><div>@@ -223,7 +223,6 @@ static void Destroy( vlc_object_t *p_this )<br></div><div> GradientCallback, p_sys );<br></div><div> var_DelCallback( p_filter, FILTER_PREFIX "cartoon",<br></div><div> GradientCallback, p_sys );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> <br></div><div> free( p_sys->p_buf32 );<br></div><div> free( p_sys->p_buf32_bis );<br></div><div>diff --git a/modules/video_filter/grain.c b/modules/video_filter/grain.c<br></div><div>index 34cb4ce4f1..174de0a822 100644<br></div><div>--- a/modules/video_filter/grain.c<br></div><div>+++ b/modules/video_filter/grain.c<br></div><div>@@ -430,7 +430,6 @@ static void Close(vlc_object_t *object)<br></div><div> filter_sys_t *sys = filter->p_sys;<br></div><div> <br></div><div> var_DelCallback(filter, CFG_PREFIX "variance", Callback, NULL);<br></div><div>- vlc_mutex_destroy(&sys->cfg.lock);<br></div><div> free(sys);<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/video_filter/hqdn3d.c <br></div><div>b/modules/video_filter/hqdn3d.c<br></div><div>index bd453759dc..beb57974d8 100644<br></div><div>--- a/modules/video_filter/hqdn3d.c<br></div><div>+++ b/modules/video_filter/hqdn3d.c<br></div><div>@@ -179,8 +179,6 @@ static void Close(vlc_object_t *this)<br></div><div> var_DelCallback( filter, FILTER_PREFIX "luma-temp", <br></div><div>DenoiseCallback, sys );<br></div><div> var_DelCallback( filter, FILTER_PREFIX "chroma-temp", <br></div><div>DenoiseCallback, sys );<br></div><div> <br></div><div>- vlc_mutex_destroy( &sys->coefs_mutex );<br></div><div>-<br></div><div> for (int i = 0; i < 3; ++i) {<br></div><div> free(cfg->Frame[i]);<br></div><div> }<br></div><div>diff --git a/modules/video_filter/postproc.c b/modules/video_filter/postproc.c<br></div><div>index e3fd252eaa..bf0192de2b 100644<br></div><div>--- a/modules/video_filter/postproc.c<br></div><div>+++ b/modules/video_filter/postproc.c<br></div><div>@@ -272,7 +272,6 @@ static void ClosePostproc( vlc_object_t *p_this )<br></div><div> var_DelCallback( p_filter, FILTER_PREFIX "name", PPNameCallback, NULL );<br></div><div> <br></div><div> /* Destroy the resources */<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> pp_free_context( p_sys->pp_context );<br></div><div> pp_free_mode( p_sys->pp_mode );<br></div><div> free( p_sys );<br></div><div>diff --git a/modules/video_filter/puzzle.c <br></div><div>b/modules/video_filter/puzzle.c<br></div><div>index f85f6a10b2..35e0a090ce 100644<br></div><div>--- a/modules/video_filter/puzzle.c<br></div><div>+++ b/modules/video_filter/puzzle.c<br></div><div>@@ -226,9 +226,6 @@ static void Close( vlc_object_t *p_this ) {<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "rotation", <br></div><div>puzzle_Callback, p_sys );<br></div><div> var_DelCallback( p_filter, CFG_PREFIX "mode", <br></div><div>puzzle_Callback, p_sys );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>- vlc_mutex_destroy( &p_sys->pce_lock );<br></div><div>-<br></div><div> /* Free allocated memory */<br></div><div> puzzle_free_ps_puzzle_array ( p_filter );<br></div><div> puzzle_free_ps_pieces_shapes ( p_filter);<br></div><div>diff --git a/modules/video_output/decklink.cpp <br></div><div>b/modules/video_output/decklink.cpp<br></div><div>index c166233363..3c7c85eb3d 100644<br></div><div>--- a/modules/video_output/decklink.cpp<br></div><div>+++ b/modules/video_output/decklink.cpp<br></div><div>@@ -351,7 +351,6 @@ static void ReleaseDLSys(vlc_object_t *obj, int <br></div><div>i_cat)<br></div><div> <br></div><div> if (--sys->users == 0) {<br></div><div> msg_Dbg(obj, "Destroying decklink data");<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> vlc_cond_destroy(&sys->cond);<br></div><div> <br></div><div> if (sys->p_output) {<br></div><div>diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m<br></div><div>index 9a075194f2..5c273ded11 100644<br></div><div>--- a/modules/video_output/ios.m<br></div><div>+++ b/modules/video_output/ios.m<br></div><div>@@ -507,7 +507,6 @@ static void GLESSwap(vlc_gl_t *gl)<br></div><div> <br></div><div> - (void)dealloc<br></div><div> {<br></div><div>- vlc_mutex_destroy(&_mutex);<br></div><div> vlc_cond_destroy(&_gl_attached_wait);<br></div><div> [super dealloc];<br></div><div> }<br></div><div>diff --git a/modules/video_output/splitter.c b/modules/video_output/splitter.c<br></div><div>index 43cccba061..71ceda4674 100644<br></div><div>--- a/modules/video_output/splitter.c<br></div><div>+++ b/modules/video_output/splitter.c<br></div><div>@@ -131,7 +131,6 @@ static void vlc_vidsplit_Close(vout_display_t *vd)<br></div><div> <br></div><div> module_unneed(&sys->splitter, sys->splitter.p_module);<br></div><div> video_format_Clean(&sys->splitter.fmt);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> vlc_object_delete(&sys->splitter);<br></div><div> }<br></div><div> <br></div><div>@@ -249,7 +248,6 @@ static int vlc_vidsplit_Open(vout_display_t *vd,<br></div><div> free(name);<br></div><div> if (splitter->p_module == NULL) {<br></div><div> video_format_Clean(&splitter->fmt);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> vlc_object_delete(splitter);<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>diff --git a/modules/video_output/wayland/xdg-shell.c <br></div><div>b/modules/video_output/wayland/xdg-shell.c<br></div><div>index f6363c641c..765ffb2a2f 100644<br></div><div>--- a/modules/video_output/wayland/xdg-shell.c<br></div><div>+++ b/modules/video_output/wayland/xdg-shell.c<br></div><div>@@ -752,7 +752,6 @@ static void Close(vout_window_t *wnd)<br></div><div> vlc_cancel(sys->thread);<br></div><div> vlc_join(sys->thread, NULL);<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> seat_destroy_all(&sys->seats);<br></div><div> output_list_destroy(sys->outputs);<br></div><div> #ifdef XDG_SHELL<br></div><div>diff --git a/modules/video_output/win32/events.c <br></div><div>b/modules/video_output/win32/events.c<br></div><div>index 9e8df25be3..15da61dc26 100644<br></div><div>--- a/modules/video_output/win32/events.c<br></div><div>+++ b/modules/video_output/win32/events.c<br></div><div>@@ -167,7 +167,6 @@ event_thread_t *EventThreadCreate( vlc_object_t <br></div><div>*obj, vout_window_t *parent_wind<br></div><div> void EventThreadDestroy( event_thread_t *p_event )<br></div><div> {<br></div><div> vlc_cond_destroy( &p_event->wait );<br></div><div>- vlc_mutex_destroy( &p_event->lock );<br></div><div> free( p_event );<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/video_output/win32/inhibit.c <br></div><div>b/modules/video_output/win32/inhibit.c<br></div><div>index 566b311189..c1d3199ccb 100644<br></div><div>--- a/modules/video_output/win32/inhibit.c<br></div><div>+++ b/modules/video_output/win32/inhibit.c<br></div><div>@@ -89,7 +89,6 @@ static void CloseInhibit (vlc_object_t *obj)<br></div><div> vlc_cancel(sys->thread);<br></div><div> vlc_join(sys->thread, NULL);<br></div><div> vlc_cond_destroy(&sys->cond);<br></div><div>- vlc_mutex_destroy(&sys->mutex);<br></div><div> }<br></div><div> <br></div><div> static int OpenInhibit (vlc_object_t *obj)<br></div><div>@@ -108,7 +107,6 @@ static int OpenInhibit (vlc_object_t *obj)<br></div><div> if (vlc_clone(&sys->thread, Run, ih, VLC_THREAD_PRIORITY_LOW))<br></div><div> {<br></div><div> vlc_cond_destroy(&sys->cond);<br></div><div>- vlc_mutex_destroy(&sys->mutex);<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div> <br></div><div>diff --git a/modules/visualization/goom.c b/modules/visualization/goom.c<br></div><div>index 3fa6203e1c..a9b225f2f9 100644<br></div><div>--- a/modules/visualization/goom.c<br></div><div>+++ b/modules/visualization/goom.c<br></div><div>@@ -147,7 +147,6 @@ static int Open( vlc_object_t *p_this )<br></div><div> Thread, p_thread, VLC_THREAD_PRIORITY_LOW ) )<br></div><div> {<br></div><div> msg_Err( p_filter, "cannot launch goom thread" );<br></div><div>- vlc_mutex_destroy( &p_thread->lock );<br></div><div> vlc_cond_destroy( &p_thread->wait );<br></div><div> vout_Close( p_thread->p_vout );<br></div><div> free( p_thread );<br></div><div>@@ -353,7 +352,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> <br></div><div> /* Free data */<br></div><div> vout_Close( p_thread->p_vout );<br></div><div>- vlc_mutex_destroy( &p_thread->lock );<br></div><div> vlc_cond_destroy( &p_thread->wait );<br></div><div> <br></div><div> while( p_thread->i_blocks-- )<br></div><div>diff --git a/modules/visualization/projectm.cpp <br></div><div>b/modules/visualization/projectm.cpp<br></div><div>index 219dfdac4e..f4b636fb23 100644<br></div><div>--- a/modules/visualization/projectm.cpp<br></div><div>+++ b/modules/visualization/projectm.cpp<br></div><div>@@ -204,7 +204,6 @@ static int Open( vlc_object_t * p_this )<br></div><div> return VLC_SUCCESS;<br></div><div> <br></div><div> error:<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free (p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -230,7 +229,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> <br></div><div> /* Free the ressources */<br></div><div> vlc_gl_surface_Destroy( p_sys->gl );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys->p_buffer );<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/modules/visualization/vsxu.cpp b/modules/visualization/vsxu.cpp<br></div><div>index 30239177d9..dbbb061ecf 100644<br></div><div>--- a/modules/visualization/vsxu.cpp<br></div><div>+++ b/modules/visualization/vsxu.cpp<br></div><div>@@ -146,8 +146,6 @@ static int Open( vlc_object_t * p_this )<br></div><div> return VLC_SUCCESS;<br></div><div> <br></div><div> error:<br></div><div>- vlc_mutex_destroy( &p_sys->cyclic_block_mutex );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> return VLC_EGENERIC;<br></div><div> }<br></div><div>@@ -169,8 +167,6 @@ static void Close( vlc_object_t *p_this )<br></div><div> <br></div><div> /* Free the ressources */<br></div><div> vlc_gl_surface_Destroy( p_sys->gl );<br></div><div>- vlc_mutex_destroy( &p_sys->cyclic_block_mutex );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> delete p_sys->vsxu_cyclic_buffer;<br></div><div> free( p_sys );<br></div><div> }<br></div><div>diff --git a/src/android/thread.c b/src/android/thread.c<br></div><div>index 24eea70ae9..69ec70c25d 100644<br></div><div>--- a/src/android/thread.c<br></div><div>+++ b/src/android/thread.c<br></div><div>@@ -108,7 +108,6 @@ static void clean_detached_thread(void *data)<br></div><div> struct vlc_thread *th = data;<br></div><div> <br></div><div> /* release thread handle */<br></div><div>- vlc_mutex_destroy(&th->wait.lock);<br></div><div> free(th);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/audio_output/output.c b/src/audio_output/output.c<br></div><div>index 526489e5f6..d7d013c81d 100644<br></div><div>--- a/src/audio_output/output.c<br></div><div>+++ b/src/audio_output/output.c<br></div><div>@@ -385,7 +385,6 @@ void aout_Release(audio_output_t *aout)<br></div><div> <br></div><div> atomic_thread_fence(memory_order_acquire);<br></div><div> <br></div><div>- vlc_mutex_destroy (&owner->dev.lock);<br></div><div> for (aout_dev_t *dev = owner->dev.list, *next; dev != NULL; dev = next)<br></div><div> {<br></div><div> next = dev->next;<br></div><div>@@ -393,8 +392,6 @@ void aout_Release(audio_output_t *aout)<br></div><div> free (dev);<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy (&owner->vp.lock);<br></div><div>- vlc_mutex_destroy (&owner->lock);<br></div><div> vlc_object_delete(VLC_OBJECT(aout));<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/clock/clock.c b/src/clock/clock.c<br></div><div>index 43c44bed6e..8637d827e4 100644<br></div><div>--- a/src/clock/clock.c<br></div><div>+++ b/src/clock/clock.c<br></div><div>@@ -469,7 +469,6 @@ void vlc_clock_main_ChangePause(vlc_clock_main_t <br></div><div>*main_clock, vlc_tick_t now,<br></div><div> <br></div><div> void vlc_clock_main_Delete(vlc_clock_main_t *main_clock)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&main_clock->lock);<br></div><div> vlc_cond_destroy(&main_clock->cond);<br></div><div> assert(main_clock->rc == 1);<br></div><div> free(main_clock);<br></div><div>diff --git a/src/clock/input_clock.c b/src/clock/input_clock.c<br></div><div>index c7724625c4..ac891d8cb9 100644<br></div><div>--- a/src/clock/input_clock.c<br></div><div>+++ b/src/clock/input_clock.c<br></div><div>@@ -189,7 +189,6 @@ input_clock_t *input_clock_New( float rate )<br></div><div> void input_clock_Delete( input_clock_t *cl )<br></div><div> {<br></div><div> AvgClean( &cl->drift );<br></div><div>- vlc_mutex_destroy( &cl->lock );<br></div><div> free( cl );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/decoder.c b/src/input/decoder.c<br></div><div>index d7f85243d3..fd2e6aa03b 100644<br></div><div>--- a/src/input/decoder.c<br></div><div>+++ b/src/input/decoder.c<br></div><div>@@ -2043,9 +2043,6 @@ static void DeleteDecoder( decoder_t * p_dec )<br></div><div> vlc_cond_destroy( &p_owner->wait_fifo );<br></div><div> vlc_cond_destroy( &p_owner->wait_acknowledge );<br></div><div> vlc_cond_destroy( &p_owner->wait_request );<br></div><div>- vlc_mutex_destroy( &p_owner->lock );<br></div><div>- vlc_mutex_destroy( &p_owner->mouse_lock );<br></div><div>-<br></div><div> decoder_Destroy( &p_owner->dec );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/demux_chained.c b/src/input/demux_chained.c<br></div><div>index f2123fd0f7..c8c436daec 100644<br></div><div>--- a/src/input/demux_chained.c<br></div><div>+++ b/src/input/demux_chained.c<br></div><div>@@ -124,7 +124,6 @@ vlc_demux_chained_t <br></div><div>*vlc_demux_chained_New(vlc_object_t *parent,<br></div><div> {<br></div><div> vlc_stream_Delete(dc->reader);<br></div><div> vlc_stream_fifo_Close(dc->writer);<br></div><div>- vlc_mutex_destroy(&dc->lock);<br></div><div> free(dc);<br></div><div> dc = NULL;<br></div><div> }<br></div><div>@@ -165,6 +164,5 @@ void vlc_demux_chained_Delete(vlc_demux_chained_t <br></div><div>*dc)<br></div><div> {<br></div><div> vlc_stream_fifo_Close(dc->writer);<br></div><div> vlc_join(dc->thread, NULL);<br></div><div>- vlc_mutex_destroy(&dc->lock);<br></div><div> free(dc);<br></div><div> }<br></div><div>diff --git a/src/input/es_out.c b/src/input/es_out.c<br></div><div>index 7671dc3948..6955192dc0 100644<br></div><div>--- a/src/input/es_out.c<br></div><div>+++ b/src/input/es_out.c<br></div><div>@@ -598,8 +598,6 @@ static void EsOutDelete( es_out_t *out )<br></div><div> EsOutPropsCleanup( &p_sys->audio );<br></div><div> EsOutPropsCleanup( &p_sys->sub );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div>-<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/es_out_timeshift.c b/src/input/es_out_timeshift.c<br></div><div>index ed79000f65..bfdb930981 100644<br></div><div>--- a/src/input/es_out_timeshift.c<br></div><div>+++ b/src/input/es_out_timeshift.c<br></div><div>@@ -405,7 +405,6 @@ static void Destroy( es_out_t *p_out )<br></div><div> TAB_CLEAN( p_sys->i_es, p_sys->pp_es );<br></div><div> <br></div><div> free( p_sys->psz_tmp_path );<br></div><div>- vlc_mutex_destroy( &p_sys->lock );<br></div><div> free( p_sys );<br></div><div> }<br></div><div> <br></div><div>@@ -784,7 +783,6 @@ static const struct es_out_callbacks es_out_timeshift_cbs =<br></div><div> static void TsDestroy( ts_thread_t *p_ts )<br></div><div> {<br></div><div> vlc_cond_destroy( &p_ts->wait );<br></div><div>- vlc_mutex_destroy( &p_ts->lock );<br></div><div> free( p_ts );<br></div><div> }<br></div><div> static int TsStart( es_out_t *p_out )<br></div><div>diff --git a/src/input/input.c b/src/input/input.c<br></div><div>index 2dd0bf0982..bb57eb4705 100644<br></div><div>--- a/src/input/input.c<br></div><div>+++ b/src/input/input.c<br></div><div>@@ -439,7 +439,6 @@ static void Destroy(input_thread_t *input)<br></div><div> }<br></div><div> <br></div><div> vlc_cond_destroy(&priv->wait_control);<br></div><div>- vlc_mutex_destroy(&priv->lock_control);<br></div><div> vlc_object_delete(VLC_OBJECT(input));<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/item.c b/src/input/item.c<br></div><div>index 1a8a2bdb3f..1c03af739b 100644<br></div><div>--- a/src/input/item.c<br></div><div>+++ b/src/input/item.c<br></div><div>@@ -519,7 +519,6 @@ void input_item_Release( input_item_t *p_item )<br></div><div> input_item_slave_Delete( p_item->pp_slaves[i] );<br></div><div> TAB_CLEAN( p_item->i_slaves, p_item->pp_slaves );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_item->lock );<br></div><div> free( owner );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/resource.c b/src/input/resource.c<br></div><div>index 0d192f2beb..65906da287 100644<br></div><div>--- a/src/input/resource.c<br></div><div>+++ b/src/input/resource.c<br></div><div>@@ -299,8 +299,6 @@ void input_resource_Release( input_resource_t *p_resource )<br></div><div> if( p_resource->p_aout != NULL )<br></div><div> aout_Destroy( p_resource->p_aout );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_resource->lock_hold );<br></div><div>- vlc_mutex_destroy( &p_resource->lock );<br></div><div> vout_Release( p_resource->p_vout_dummy );<br></div><div> free( p_resource );<br></div><div> }<br></div><div>diff --git a/src/input/stats.c b/src/input/stats.c<br></div><div>index 4a79ddc840..b294a59e98 100644<br></div><div>--- a/src/input/stats.c<br></div><div>+++ b/src/input/stats.c<br></div><div>@@ -72,8 +72,6 @@ struct input_stats *input_stats_Create(void)<br></div><div> <br></div><div> void input_stats_Destroy(struct input_stats *stats)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&stats->demux_bitrate.lock);<br></div><div>- vlc_mutex_destroy(&stats->input_bitrate.lock);<br></div><div> free(stats);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/thumbnailer.c b/src/input/thumbnailer.c<br></div><div>index dbf23b5115..783eb2886b 100644<br></div><div>--- a/src/input/thumbnailer.c<br></div><div>+++ b/src/input/thumbnailer.c<br></div><div>@@ -117,7 +117,6 @@ static void thumbnailer_request_Release( void* data )<br></div><div> input_Close( request->input_thread );<br></div><div> <br></div><div> input_item_Release( request->params.input_item );<br></div><div>- vlc_mutex_destroy( &request->lock );<br></div><div> free( request );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/input/vlm.c b/src/input/vlm.c<br></div><div>index c63217c295..d33b9a917a 100644<br></div><div>--- a/src/input/vlm.c<br></div><div>+++ b/src/input/vlm.c<br></div><div>@@ -179,8 +179,6 @@ vlm_t *vlm_New( libvlc_int_t *libvlc, const char <br></div><div>*psz_vlmconf )<br></div><div> if( vlc_clone( &p_vlm->thread, Manage, p_vlm, <br></div><div>VLC_THREAD_PRIORITY_LOW ) )<br></div><div> {<br></div><div> vlc_cond_destroy( &p_vlm->wait_manage );<br></div><div>- vlc_mutex_destroy( &p_vlm->lock );<br></div><div>- vlc_mutex_destroy( &p_vlm->lock_manage );<br></div><div> vlc_object_delete(p_vlm);<br></div><div> vlc_mutex_unlock( &vlm_mutex );<br></div><div> return NULL;<br></div><div>@@ -257,8 +255,6 @@ void vlm_Delete( vlm_t *p_vlm )<br></div><div> vlc_join( p_vlm->thread, NULL );<br></div><div> <br></div><div> vlc_cond_destroy( &p_vlm->wait_manage );<br></div><div>- vlc_mutex_destroy( &p_vlm->lock );<br></div><div>- vlc_mutex_destroy( &p_vlm->lock_manage );<br></div><div> vlc_object_delete(p_vlm);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/interface/dialog.c b/src/interface/dialog.c<br></div><div>index 4205d88be4..c761bd0c4d 100644<br></div><div>--- a/src/interface/dialog.c<br></div><div>+++ b/src/interface/dialog.c<br></div><div>@@ -140,7 +140,6 @@ dialog_id_release(vlc_dialog_id *p_id)<br></div><div> free(p_id->answer.u.login.psz_password);<br></div><div> }<br></div><div> free(p_id->psz_progress_text);<br></div><div>- vlc_mutex_destroy(&p_id->lock);<br></div><div> vlc_cond_destroy(&p_id->wait);<br></div><div> free(p_id);<br></div><div> }<br></div><div>@@ -245,7 +244,6 @@ libvlc_InternalDialogClean(libvlc_int_t *p_libvlc)<br></div><div> dialog_clear_all_locked(p_provider);<br></div><div> vlc_mutex_unlock(&p_provider->lock);<br></div><div> <br></div><div>- vlc_mutex_destroy(&p_provider->lock);<br></div><div> free(p_provider);<br></div><div> libvlc_priv(p_libvlc)->p_dialog_provider = NULL;<br></div><div> }<br></div><div>diff --git a/src/libvlc.c b/src/libvlc.c<br></div><div>index 2d370deab8..c40fa19ba3 100644<br></div><div>--- a/src/libvlc.c<br></div><div>+++ b/src/libvlc.c<br></div><div>@@ -456,11 +456,6 @@ void libvlc_InternalCleanup( libvlc_int_t *p_libvlc )<br></div><div> */<br></div><div> void libvlc_InternalDestroy( libvlc_int_t *p_libvlc )<br></div><div> {<br></div><div>- libvlc_priv_t *priv = libvlc_priv( p_libvlc );<br></div><div>-<br></div><div>- vlc_ExitDestroy( &priv->exit );<br></div><div>-<br></div><div>- vlc_mutex_destroy(&priv->lock);<br></div><div> vlc_object_delete(p_libvlc);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/libvlc.h b/src/libvlc.h<br></div><div>index e91587f947..d2d112aa56 100644<br></div><div>--- a/src/libvlc.h<br></div><div>+++ b/src/libvlc.h<br></div><div>@@ -73,7 +73,6 @@ typedef struct vlc_exit<br></div><div> } vlc_exit_t;<br></div><div> <br></div><div> void vlc_ExitInit( vlc_exit_t * );<br></div><div>-void vlc_ExitDestroy( vlc_exit_t * );<br></div><div> <br></div><div> /*<br></div><div> * LibVLC objects stuff<br></div><div>diff --git a/src/libvlccore.sym b/src/libvlccore.sym<br></div><div>index a0efbecb78..1a7d4805c9 100644<br></div><div>--- a/src/libvlccore.sym<br></div><div>+++ b/src/libvlccore.sym<br></div><div>@@ -613,7 +613,6 @@ vlc_meta_Set<br></div><div> vlc_meta_SetStatus<br></div><div> vlc_meta_TypeToLocalizedString<br></div><div> vlc_mime_Ext2Mime<br></div><div>-vlc_mutex_destroy<br></div><div> vlc_mutex_init<br></div><div> vlc_mutex_init_recursive<br></div><div> vlc_mutex_lock<br></div><div>diff --git a/src/media_source/media_source.c b/src/media_source/media_source.c<br></div><div>index f6ac776ae2..71b37d41ac 100644<br></div><div>--- a/src/media_source/media_source.c<br></div><div>+++ b/src/media_source/media_source.c<br></div><div>@@ -243,7 +243,6 @@ vlc_media_source_provider_New(vlc_object_t *parent)<br></div><div> void<br></div><div> vlc_media_source_provider_Delete(vlc_media_source_provider_t *provider)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&provider->lock);<br></div><div> ReleaseObject(provider);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/media_source/media_tree.c b/src/media_source/media_tree.c<br></div><div>index 017325719f..5774b294ff 100644<br></div><div>--- a/src/media_source/media_tree.c<br></div><div>+++ b/src/media_source/media_tree.c<br></div><div>@@ -204,7 +204,6 @@ vlc_media_tree_Delete(vlc_media_tree_t *tree)<br></div><div> free(listener);<br></div><div> vlc_list_init(&priv->listeners); /* reset */<br></div><div> vlc_media_tree_DestroyRootNode(tree);<br></div><div>- vlc_mutex_destroy(&priv->lock);<br></div><div> free(tree);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/addons.c b/src/misc/addons.c<br></div><div>index 1e19943037..a7a3414ddf 100644<br></div><div>--- a/src/misc/addons.c<br></div><div>+++ b/src/misc/addons.c<br></div><div>@@ -124,7 +124,6 @@ void addon_entry_Release( addon_entry_t * p_entry )<br></div><div> }<br></div><div> ARRAY_RESET( p_entry->files );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_entry->lock );<br></div><div> free( owner );<br></div><div> }<br></div><div> <br></div><div>@@ -199,7 +198,6 @@ void addons_manager_Delete( addons_manager_t *p_manager )<br></div><div> ARRAY_FOREACH( p_entry, p_manager->p_priv->name.entries )\<br></div><div> addon_entry_Release( p_entry );\<br></div><div> ARRAY_RESET( p_manager->p_priv->name.entries );\<br></div><div>- vlc_mutex_destroy( &p_manager->p_priv->name.lock );\<br></div><div> vlc_cond_destroy( &p_manager->p_priv->name.waitcond );\<br></div><div> vlc_interrupt_destroy( p_manager->p_priv->name.p_interrupt );<br></div><div> <br></div><div>diff --git a/src/misc/background_worker.c b/src/misc/background_worker.c<br></div><div>index 04014354e9..4bba9e0ff3 100644<br></div><div>--- a/src/misc/background_worker.c<br></div><div>+++ b/src/misc/background_worker.c<br></div><div>@@ -171,7 +171,6 @@ static struct background_worker <br></div><div>*background_worker_Create(void *owner,<br></div><div> static void background_worker_Destroy(struct background_worker *worker)<br></div><div> {<br></div><div> vlc_cond_destroy(&worker->queue_wait);<br></div><div>- vlc_mutex_destroy(&worker->lock);<br></div><div> free(worker);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/events.c b/src/misc/events.c<br></div><div>index 150f7272bc..e5472773ed 100644<br></div><div>--- a/src/misc/events.c<br></div><div>+++ b/src/misc/events.c<br></div><div>@@ -80,8 +80,6 @@ void vlc_event_manager_fini( vlc_event_manager_t * p_em )<br></div><div> {<br></div><div> struct vlc_event_listener_t * listener;<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_em->lock );<br></div><div>-<br></div><div> for( size_t i = 0; i < ARRAY_SIZE(p_em->events); i++ )<br></div><div> {<br></div><div> struct vlc_event_listeners_group_t *slot = p_em->events + i;<br></div><div>diff --git a/src/misc/exit.c b/src/misc/exit.c<br></div><div>index 27985a4afb..d6cb0ad407 100644<br></div><div>--- a/src/misc/exit.c<br></div><div>+++ b/src/misc/exit.c<br></div><div>@@ -34,12 +34,6 @@ void vlc_ExitInit( vlc_exit_t *exit )<br></div><div> exit->opaque = NULL;<br></div><div> }<br></div><div> <br></div><div>-void vlc_ExitDestroy( vlc_exit_t *exit )<br></div><div>-{<br></div><div>- vlc_mutex_destroy( &exit->lock );<br></div><div>-}<br></div><div>-<br></div><div>-<br></div><div> /**<br></div><div> * Registers a callback for the LibVLC exit event.<br></div><div> */<br></div><div>diff --git a/src/misc/fifo.c b/src/misc/fifo.c<br></div><div>index e11aebdb87..836f29d90b 100644<br></div><div>--- a/src/misc/fifo.c<br></div><div>+++ b/src/misc/fifo.c<br></div><div>@@ -162,7 +162,6 @@ void block_FifoRelease( block_fifo_t *p_fifo )<br></div><div> {<br></div><div> block_ChainRelease( p_fifo->p_first );<br></div><div> vlc_cond_destroy( &p_fifo->wait );<br></div><div>- vlc_mutex_destroy( &p_fifo->lock );<br></div><div> free( p_fifo );<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/httpcookies.c b/src/misc/httpcookies.c<br></div><div>index f4c9682a9e..2049b1b62c 100644<br></div><div>--- a/src/misc/httpcookies.c<br></div><div>+++ b/src/misc/httpcookies.c<br></div><div>@@ -289,7 +289,6 @@ void vlc_http_cookies_destroy( <br></div><div>vlc_http_cookie_jar_t * p_jar )<br></div><div> cookie_destroy( vlc_array_item_at_index( &p_jar->cookies, i ) <br></div><div>);<br></div><div> <br></div><div> vlc_array_clear( &p_jar->cookies );<br></div><div>- vlc_mutex_destroy( &p_jar->lock );<br></div><div> <br></div><div> free( p_jar );<br></div><div> }<br></div><div>diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c<br></div><div>index d2a04a72b3..f272b6ebca 100644<br></div><div>--- a/src/misc/interrupt.c<br></div><div>+++ b/src/misc/interrupt.c<br></div><div>@@ -71,7 +71,6 @@ vlc_interrupt_t *vlc_interrupt_create(void)<br></div><div> void vlc_interrupt_deinit(vlc_interrupt_t *ctx)<br></div><div> {<br></div><div> assert(ctx->callback == NULL);<br></div><div>- vlc_mutex_destroy(&ctx->lock);<br></div><div> }<br></div><div> <br></div><div> void vlc_interrupt_destroy(vlc_interrupt_t *ctx)<br></div><div>diff --git a/src/misc/medialibrary.c b/src/misc/medialibrary.c<br></div><div>index b1ce7907f3..10013c7f20 100644<br></div><div>--- a/src/misc/medialibrary.c<br></div><div>+++ b/src/misc/medialibrary.c<br></div><div>@@ -111,7 +111,6 @@ vlc_medialibrary_t* libvlc_MlCreate( libvlc_int_t* <br></div><div>p_libvlc )<br></div><div> p_ml->m.p_module = module_need( &p_ml->m, "medialibrary", NULL, <br></div><div>false );<br></div><div> if ( p_ml->m.p_module == NULL )<br></div><div> {<br></div><div>- vlc_mutex_destroy( &p_ml->lock );<br></div><div> vlc_object_delete(&p_ml->m);<br></div><div> return NULL;<br></div><div> }<br></div><div>@@ -123,7 +122,6 @@ void libvlc_MlRelease( vlc_medialibrary_t* p_ml )<br></div><div> assert( p_ml != NULL );<br></div><div> module_unneed( &p_ml->m, p_ml->m.p_module );<br></div><div> assert( vlc_list_is_empty( &p_ml->cbs ) );<br></div><div>- vlc_mutex_destroy( &p_ml->lock );<br></div><div> vlc_object_delete(&p_ml->m);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/messages.c b/src/misc/messages.c<br></div><div>index 0872511389..898e4be56f 100644<br></div><div>--- a/src/misc/messages.c<br></div><div>+++ b/src/misc/messages.c<br></div><div>@@ -257,7 +257,6 @@ static void vlc_LogEarlyClose(void *d)<br></div><div> free(log);<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy(&early->lock);<br></div><div> free(early);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/objects.c b/src/misc/objects.c<br></div><div>index f87edd9827..f7e68c4dc4 100644<br></div><div>--- a/src/misc/objects.c<br></div><div>+++ b/src/misc/objects.c<br></div><div>@@ -129,7 +129,6 @@ void vlc_object_deinit(vlc_object_t *obj)<br></div><div> vlc_restorecancel(canc);<br></div><div> <br></div><div> vlc_cond_destroy(&priv->var_wait);<br></div><div>- vlc_mutex_destroy(&priv->var_lock);<br></div><div> free(priv);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/picture_fifo.c b/src/misc/picture_fifo.c<br></div><div>index 72ad2f622f..bda20f5d8f 100644<br></div><div>--- a/src/misc/picture_fifo.c<br></div><div>+++ b/src/misc/picture_fifo.c<br></div><div>@@ -142,7 +142,6 @@ void picture_fifo_OffsetDate(picture_fifo_t *fifo, <br></div><div>vlc_tick_t delta)<br></div><div> void picture_fifo_Delete(picture_fifo_t *fifo)<br></div><div> {<br></div><div> picture_fifo_Flush(fifo, VLC_TICK_INVALID, true);<br></div><div>- vlc_mutex_destroy(&fifo->lock);<br></div><div> free(fifo);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/picture_pool.c b/src/misc/picture_pool.c<br></div><div>index 0eb53516ad..9190af91c4 100644<br></div><div>--- a/src/misc/picture_pool.c<br></div><div>+++ b/src/misc/picture_pool.c<br></div><div>@@ -56,7 +56,6 @@ static void picture_pool_Destroy(picture_pool_t *pool)<br></div><div> <br></div><div> atomic_thread_fence(memory_order_acquire);<br></div><div> vlc_cond_destroy(&pool->wait);<br></div><div>- vlc_mutex_destroy(&pool->lock);<br></div><div> aligned_free(pool);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/misc/threads.c b/src/misc/threads.c<br></div><div>index c4fd617882..8fb553b440 100644<br></div><div>--- a/src/misc/threads.c<br></div><div>+++ b/src/misc/threads.c<br></div><div>@@ -125,14 +125,6 @@ void vlc_mutex_init_recursive(vlc_mutex_t *mtx)<br></div><div> vlc_mutex_init_common(mtx, true);<br></div><div> }<br></div><div> <br></div><div>-void vlc_mutex_destroy(vlc_mutex_t *mtx)<br></div><div>-{<br></div><div>- assert(atomic_load_explicit(&mtx->value, memory_order_relaxed) == 0);<br></div><div>- assert(atomic_load_explicit(&mtx->recursion, memory_order_relaxed) <= 1);<br></div><div>- assert(atomic_load_explicit(&mtx->owner, memory_order_relaxed) == NULL);<br></div><div>- (void) mtx;<br></div><div>-}<br></div><div>-<br></div><div> static _Thread_local char thread_self[1];<br></div><div> #define THREAD_SELF ((const void *)thread_self)<br></div><div> <br></div><div>@@ -239,7 +231,6 @@ void vlc_cond_init_daytime(vlc_cond_t *cond)<br></div><div> void vlc_cond_destroy(vlc_cond_t *cond)<br></div><div> {<br></div><div> assert(cond->head == NULL);<br></div><div>- vlc_mutex_destroy(&cond->lock);<br></div><div> }<br></div><div> <br></div><div> struct vlc_cond_waiter {<br></div><div>@@ -421,7 +412,6 @@ void vlc_rwlock_init (vlc_rwlock_t *lock)<br></div><div> void vlc_rwlock_destroy (vlc_rwlock_t *lock)<br></div><div> {<br></div><div> vlc_cond_destroy (&lock->wait);<br></div><div>- vlc_mutex_destroy (&lock->mutex);<br></div><div> }<br></div><div> <br></div><div> void vlc_rwlock_rdlock (vlc_rwlock_t *lock)<br></div><div>diff --git a/src/misc/update.c b/src/misc/update.c<br></div><div>index f5d6dc4ebe..44a446d8d6 100644<br></div><div>--- a/src/misc/update.c<br></div><div>+++ b/src/misc/update.c<br></div><div>@@ -147,8 +147,6 @@ void update_Delete( update_t *p_update )<br></div><div> vlc_object_delete(p_update->p_download);<br></div><div> }<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_update->lock );<br></div><div>-<br></div><div> free( p_update->release.psz_url );<br></div><div> free( p_update->release.psz_desc );<br></div><div> free( p_update->p_pkey );<br></div><div>diff --git a/src/network/httpd.c b/src/network/httpd.c<br></div><div>index 2b56c178a1..177abcc710 100644<br></div><div>--- a/src/network/httpd.c<br></div><div>+++ b/src/network/httpd.c<br></div><div>@@ -866,7 +866,6 @@ void httpd_StreamDelete(httpd_stream_t *stream)<br></div><div> free(stream->p_http_headers[i].value);<br></div><div> }<br></div><div> free(stream->p_http_headers);<br></div><div>- vlc_mutex_destroy(&stream->lock);<br></div><div> free(stream->psz_mime);<br></div><div> free(stream->p_header);<br></div><div> free(stream->p_buffer);<br></div><div>@@ -993,7 +992,6 @@ error:<br></div><div> if (host) {<br></div><div> net_ListenClose(host->fds);<br></div><div> vlc_cond_destroy(&host->wait);<br></div><div>- vlc_mutex_destroy(&host->lock);<br></div><div> vlc_object_delete(host);<br></div><div> }<br></div><div> <br></div><div>@@ -1030,7 +1028,6 @@ void httpd_HostDelete(httpd_host_t *host)<br></div><div> vlc_tls_ServerDelete(host->p_tls);<br></div><div> net_ListenClose(host->fds);<br></div><div> vlc_cond_destroy(&host->wait);<br></div><div>- vlc_mutex_destroy(&host->lock);<br></div><div> vlc_object_delete(host);<br></div><div> vlc_mutex_unlock(&httpd.mutex);<br></div><div> }<br></div><div>@@ -1117,7 +1114,6 @@ void httpd_UrlDelete(httpd_url_t *url)<br></div><div> vlc_mutex_lock(&host->lock);<br></div><div> vlc_list_remove(&url->node);<br></div><div> <br></div><div>- vlc_mutex_destroy(&url->lock);<br></div><div> free(url->psz_url);<br></div><div> free(url->psz_user);<br></div><div> free(url->psz_password);<br></div><div>diff --git a/src/os2/thread.c b/src/os2/thread.c<br></div><div>index c30cdad210..d7d07f6a17 100644<br></div><div>--- a/src/os2/thread.c<br></div><div>+++ b/src/os2/thread.c<br></div><div>@@ -160,7 +160,6 @@ unsigned long _System _DLL_InitTerm(unsigned long <br></div><div>hmod, unsigned long flag)<br></div><div> vlc_rwlock_destroy (&config_lock);<br></div><div> vlc_threadvar_delete (&thread_key);<br></div><div> vlc_cond_destroy (&super_variable);<br></div><div>- vlc_mutex_destroy (&super_mutex);<br></div><div> <br></div><div> _CRT_term();<br></div><div> <br></div><div>diff --git a/src/player/player.c b/src/player/player.c<br></div><div>index 48c03905a4..6eedc71925 100644<br></div><div>--- a/src/player/player.c<br></div><div>+++ b/src/player/player.c<br></div><div>@@ -1843,9 +1843,6 @@ vlc_player_InitLocks(vlc_player_t *player, enum <br></div><div>vlc_player_lock_type lock_type)<br></div><div> static void<br></div><div> vlc_player_DestroyLocks(vlc_player_t *player)<br></div><div> {<br></div><div>- vlc_mutex_destroy(&player->lock);<br></div><div>- vlc_mutex_destroy(&player->vout_listeners_lock);<br></div><div>- vlc_mutex_destroy(&player->aout_listeners_lock);<br></div><div> vlc_cond_destroy(&player->start_delay_cond);<br></div><div> vlc_cond_destroy(&player->destructor.wait);<br></div><div> }<br></div><div>diff --git a/src/player/timer.c b/src/player/timer.c<br></div><div>index 56bbdc0ae7..1be28b22f0 100644<br></div><div>--- a/src/player/timer.c<br></div><div>+++ b/src/player/timer.c<br></div><div>@@ -537,5 +537,4 @@ vlc_player_DestroyTimer(vlc_player_t *player)<br></div><div> {<br></div><div> for (size_t i = 0; i < VLC_PLAYER_TIMER_TYPE_COUNT; ++i)<br></div><div> assert(vlc_list_is_empty(&player->timer.sources[i].listeners));<br></div><div>- vlc_mutex_destroy(&player->timer.lock);<br></div><div> }<br></div><div>diff --git a/src/posix/timer.c b/src/posix/timer.c<br></div><div>index 713a9133f5..f84f17cb9d 100644<br></div><div>--- a/src/posix/timer.c<br></div><div>+++ b/src/posix/timer.c<br></div><div>@@ -122,7 +122,6 @@ int vlc_timer_create (vlc_timer_t *id, void (*func) <br></div><div>(void *), void *data)<br></div><div> VLC_THREAD_PRIORITY_INPUT))<br></div><div> {<br></div><div> vlc_cond_destroy (&timer->reschedule);<br></div><div>- vlc_mutex_destroy (&timer->lock);<br></div><div> free (timer);<br></div><div> return ENOMEM;<br></div><div> }<br></div><div>@@ -140,7 +139,6 @@ void vlc_timer_destroy (vlc_timer_t timer)<br></div><div> <br></div><div> vlc_join (timer->thread, NULL);<br></div><div> vlc_cond_destroy (&timer->reschedule);<br></div><div>- vlc_mutex_destroy (&timer->lock);<br></div><div> free (timer);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/preparser/fetcher.c b/src/preparser/fetcher.c<br></div><div>index ac5c3eba21..5bb4aa1cef 100644<br></div><div>--- a/src/preparser/fetcher.c<br></div><div>+++ b/src/preparser/fetcher.c<br></div><div>@@ -481,7 +481,5 @@ void input_fetcher_Delete( input_fetcher_t* fetcher )<br></div><div> background_worker_Delete( fetcher->downloader );<br></div><div> <br></div><div> vlc_dictionary_clear( &fetcher->album_cache, FreeCacheEntry, NULL <br></div><div>);<br></div><div>- vlc_mutex_destroy( &fetcher->lock );<br></div><div>-<br></div><div> free( fetcher );<br></div><div> }<br></div><div>diff --git a/src/stream_output/stream_output.c <br></div><div>b/src/stream_output/stream_output.c<br></div><div>index 80daa2ae0e..239a81936d 100644<br></div><div>--- a/src/stream_output/stream_output.c<br></div><div>+++ b/src/stream_output/stream_output.c<br></div><div>@@ -131,7 +131,6 @@ sout_instance_t *sout_NewInstance( vlc_object_t <br></div><div>*p_parent, const char *psz_dest<br></div><div> <br></div><div> FREENULL( p_sout->psz_sout );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sout->lock );<br></div><div> vlc_object_delete(p_sout);<br></div><div> return NULL;<br></div><div> }<br></div><div>@@ -147,8 +146,6 @@ void sout_DeleteInstance( sout_instance_t * p_sout )<br></div><div> /* *** free all string *** */<br></div><div> FREENULL( p_sout->psz_sout );<br></div><div> <br></div><div>- vlc_mutex_destroy( &p_sout->lock );<br></div><div>-<br></div><div> /* *** free structure *** */<br></div><div> vlc_object_delete(p_sout);<br></div><div> }<br></div><div>diff --git a/src/test/timer.c b/src/test/timer.c<br></div><div>index 1162305fe2..6b40c30c47 100644<br></div><div>--- a/src/test/timer.c<br></div><div>+++ b/src/test/timer.c<br></div><div>@@ -108,7 +108,5 @@ int main (void)<br></div><div> <br></div><div> vlc_timer_destroy (data.timer);<br></div><div> vlc_cond_destroy (&data.wait);<br></div><div>- vlc_mutex_destroy (&data.lock);<br></div><div>-<br></div><div> return 0;<br></div><div> }<br></div><div>diff --git a/src/video_output/control.c b/src/video_output/control.c<br></div><div>index 616ea566cf..c14931070b 100644<br></div><div>--- a/src/video_output/control.c<br></div><div>+++ b/src/video_output/control.c<br></div><div>@@ -69,7 +69,6 @@ void vout_control_Clean(vout_control_t *ctrl)<br></div><div> }<br></div><div> ARRAY_RESET(ctrl->cmd);<br></div><div> <br></div><div>- vlc_mutex_destroy(&ctrl->lock);<br></div><div> vlc_cond_destroy(&ctrl->wait_request);<br></div><div> vlc_cond_destroy(&ctrl->wait_available);<br></div><div> }<br></div><div>diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c<br></div><div>index 9d207ac709..99ba7b29e7 100644<br></div><div>--- a/src/video_output/opengl.c<br></div><div>+++ b/src/video_output/opengl.c<br></div><div>@@ -187,7 +187,6 @@ vlc_gl_t *vlc_gl_surface_Create(vlc_object_t *obj,<br></div><div> return gl;<br></div><div> <br></div><div> error:<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> free(sys);<br></div><div> return NULL;<br></div><div> }<br></div><div>@@ -230,6 +229,5 @@ void vlc_gl_surface_Destroy(vlc_gl_t *gl)<br></div><div> vlc_gl_Release(gl);<br></div><div> vout_window_Disable(surface);<br></div><div> vout_window_Delete(surface);<br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div> free(sys);<br></div><div> }<br></div><div>diff --git a/src/video_output/snapshot.c b/src/video_output/snapshot.c<br></div><div>index 92b5886dc8..b18297cb1b 100644<br></div><div>--- a/src/video_output/snapshot.c<br></div><div>+++ b/src/video_output/snapshot.c<br></div><div>@@ -78,7 +78,6 @@ void vout_snapshot_Destroy(vout_snapshot_t *snap)<br></div><div> }<br></div><div> <br></div><div> vlc_cond_destroy(&snap->wait);<br></div><div>- vlc_mutex_destroy(&snap->lock);<br></div><div> free(snap);<br></div><div> }<br></div><div> <br></div><div>diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c<br></div><div>index edda78d731..229b010a96 100644<br></div><div>--- a/src/video_output/video_output.c<br></div><div>+++ b/src/video_output/video_output.c<br></div><div>@@ -1845,10 +1845,6 @@ void vout_Release(vout_thread_t *vout)<br></div><div> <br></div><div> free(sys->splitter_name);<br></div><div> <br></div><div>- /* Destroy the locks */<br></div><div>- vlc_mutex_destroy(&sys->window_lock);<br></div><div>- vlc_mutex_destroy(&sys->filter.lock);<br></div><div>-<br></div><div> if (sys->dec_device)<br></div><div> vlc_decoder_device_Release(sys->dec_device);<br></div><div> <br></div><div>@@ -1856,7 +1852,6 @@ void vout_Release(vout_thread_t *vout)<br></div><div> vout_display_window_Delete(sys->display_cfg.window);<br></div><div> <br></div><div> vout_control_Clean(&sys->control);<br></div><div>- vlc_mutex_destroy(&sys->display_lock);<br></div><div> <br></div><div> /* */<br></div><div> vout_statistic_Clean(&sys->statistic);<br></div><div>diff --git a/src/video_output/vout_subpictures.c <br></div><div>b/src/video_output/vout_subpictures.c<br></div><div>index 3efd76ff1d..2a4a79ad91 100644<br></div><div>--- a/src/video_output/vout_subpictures.c<br></div><div>+++ b/src/video_output/vout_subpictures.c<br></div><div>@@ -1582,7 +1582,6 @@ static void spu_Cleanup(spu_t *spu)<br></div><div> <br></div><div> if (sys->text)<br></div><div> FilterRelease(sys->text);<br></div><div>- vlc_mutex_destroy(&sys->textlock);<br></div><div> <br></div><div> if (sys->scale_yuvp)<br></div><div> FilterRelease(sys->scale_yuvp);<br></div><div>@@ -1601,7 +1600,6 @@ static void spu_Cleanup(spu_t *spu)<br></div><div> SubFilterDelProxyCallbacks, sys->vout);<br></div><div> filter_chain_Delete(sys->filter_chain);<br></div><div> free(sys->filter_chain_current);<br></div><div>- vlc_mutex_destroy(&sys->filter_chain_lock);<br></div><div> free(sys->source_chain_update);<br></div><div> free(sys->filter_chain_update);<br></div><div> <br></div><div>@@ -1611,9 +1609,6 @@ static void spu_Cleanup(spu_t *spu)<br></div><div> <br></div><div> vlc_vector_destroy(&sys->channels);<br></div><div> <br></div><div>- vlc_mutex_destroy(&sys->lock);<br></div><div>-<br></div><div>- vlc_mutex_destroy(&sys->prerender.lock);<br></div><div> vlc_cond_destroy(&sys->prerender.cond);<br></div><div> vlc_cond_destroy(&sys->prerender.output_cond);<br></div><div> vlc_vector_clear(&sys->prerender.vector);<br></div><div>diff --git a/src/video_output/window.c b/src/video_output/window.c<br></div><div>index 16ebf9ef5a..9c2df5c1e6 100644<br></div><div>--- a/src/video_output/window.c<br></div><div>+++ b/src/video_output/window.c<br></div><div>@@ -82,7 +82,6 @@ vout_window_t *vout_window_New(vlc_object_t *obj, <br></div><div>const char *module,<br></div><div> w->module = vlc_module_load(window, "vout window", module, false,<br></div><div> vout_window_start, window);<br></div><div> if (!w->module) {<br></div><div>- vlc_mutex_destroy(&w->lock);<br></div><div> vlc_object_delete(window);<br></div><div> return NULL;<br></div><div> }<br></div><div>@@ -141,7 +140,6 @@ void vout_window_Delete(vout_window_t *window)<br></div><div> window->ops->destroy(window);<br></div><div> <br></div><div> vlc_objres_clear(VLC_OBJECT(window));<br></div><div>- vlc_mutex_destroy(&w->lock);<br></div><div> vlc_object_delete(window);<br></div><div> }<br></div><div> <br></div><div>-- <br></div><div>2.25.0<hr>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></blockquote><div><hr>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></div></pre></blockquote></div><div><br></div><div>-- <br></div><div>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. <br></div><div>_______________________________________________<br></div><div>vlc-devel mailing list<br></div><div>To unsubscribe or modify your subscription options:<br></div><div>https://mailman.videolan.org/listinfo/vlc-devel<br></div></blockquote><div><br></div></body></html>