ekiga r7701 - trunk/lib/engine/videoinput
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7701 - trunk/lib/engine/videoinput
- Date: Sun, 1 Mar 2009 09:52:40 +0000 (UTC)
Author: jpuydt
Date: Sun Mar 1 09:52:40 2009
New Revision: 7701
URL: http://svn.gnome.org/viewvc/ekiga?rev=7701&view=rev
Log:
Handle video output core's lifetime more correctly (but we should really use gmref_ptr for that)
Modified:
trunk/lib/engine/videoinput/videoinput-core.cpp
Modified: trunk/lib/engine/videoinput/videoinput-core.cpp
==============================================================================
--- trunk/lib/engine/videoinput/videoinput-core.cpp (original)
+++ trunk/lib/engine/videoinput/videoinput-core.cpp Sun Mar 1 09:52:40 2009
@@ -49,6 +49,7 @@
videoinput_core (_videoinput_core),
videooutput_core (_videooutput_core)
{
+ videooutput_core.reference ();
width = 176;
height = 144;;
pause_thread = true;
@@ -67,6 +68,7 @@
end_thread = true;
run_thread.Signal();
thread_ended.Wait();
+ videooutput_core.unreference ();
}
void VideoInputCore::VideoPreviewManager::start (unsigned _width, unsigned _height)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]