diff options
author | marcus <marcus@FreeBSD.org> | 2003-10-05 01:57:06 +0000 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-10-05 01:57:06 +0000 |
commit | 8621268ef520fc64d1462326984c3e87805744f4 (patch) | |
tree | 4aa0fe59bf3af1ce691029be13b4ce4ae64e9eea /graphics/multivideo/files | |
parent | c5e1fab0ea6d80da2dbc7bacd1906a0b5c33239c (diff) | |
download | FreeBSD-ports-8621268ef520fc64d1462326984c3e87805744f4.zip FreeBSD-ports-8621268ef520fc64d1462326984c3e87805744f4.tar.gz |
Convert to use the new wxgtk.
PR: 57587
Submitted by: Pav Lucistnik <pav@oook.cz>
Diffstat (limited to 'graphics/multivideo/files')
-rw-r--r-- | graphics/multivideo/files/patch-buffer.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/graphics/multivideo/files/patch-buffer.cpp b/graphics/multivideo/files/patch-buffer.cpp new file mode 100644 index 0000000..3096a80 --- /dev/null +++ b/graphics/multivideo/files/patch-buffer.cpp @@ -0,0 +1,39 @@ +--- buffer.cpp.orig Thu Jan 31 18:46:26 2002 ++++ buffer.cpp Sun Oct 5 03:33:25 2003 +@@ -20,6 +20,9 @@ + #include <iostream> + #include "buffer.hh" + ++wxMutex load_thread_cond_mutex; ++wxMutex thread_proc_cond_mutex; ++ + buffer::buffer(int nb_pictures, int size,bool free) : + number_of_pictures(nb_pictures), + buffer_size(size), +@@ -35,8 +38,8 @@ + mutex_first_image (new wxMutex()), + mutex_loaded_image (new wxMutex()), + mutex_last_position (new wxMutex()), +- load_thread_you_can_load (new wxCondition()), +- thread_process_you_can_process(new wxCondition()) ++ load_thread_you_can_load (new wxCondition(load_thread_cond_mutex)), ++ thread_process_you_can_process(new wxCondition(thread_proc_cond_mutex)) + { + images.resize(number_of_pictures+1); + images_process.resize(number_of_pictures+1); +@@ -429,7 +432,7 @@ + { + delete load_thread_you_can_load; + } +- load_thread_you_can_load=new wxCondition(); ++ load_thread_you_can_load=new wxCondition(load_thread_cond_mutex); + } + + void buffer::initialize_condition_process() +@@ -438,5 +441,5 @@ + { + delete thread_process_you_can_process; + } +- thread_process_you_can_process=new wxCondition(); ++ thread_process_you_can_process=new wxCondition(thread_proc_cond_mutex); + } |