vlc/vlc-2.0 | branch: master | Felix Paul Kühne <[email protected]> | Fri 
May 24 16:21:38 2013 +0200| [20b913411e74779f934cccf9f541f914430d6737] | 
committer: Felix Paul Kühne

macosx: add work-around to prevent freshly created media files from being 
over-written (close #8685)

The core may restart playback on termination and in turn over-write created 
files with garbage. The less hacky approach 7f52b2ae is 2.1-only and thus can't 
be backported. A proper solution is covered by #8353 and depends on future core 
modifications scheduled for 2.2

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=20b913411e74779f934cccf9f541f914430d6737
---

 modules/gui/macosx/intf.m |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 85edc8a..448e738 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -750,6 +750,10 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     msg_Dbg( p_intf, "Terminating" );
 
+    /* HACK: the playlist will re-start on quit because of a core vs. UI 
module limitation
+     * in turn, items created by transcoding can and will be over-written with 
garbage */
+    playlist_Clear(p_playlist, false);
+
     /* unsubscribe from the interactive dialogues */
     dialog_Unregister( p_intf );
     var_DelCallback( p_intf, "dialog-error", DialogCallback, self );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to