Re: gstmm add element to pipeline test
- From: José Alburquerque <jaalburquerque cox net>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: gstmm add element to pipeline test
- Date: Thu, 06 Dec 2007 12:48:25 -0500
Murray Cumming wrote:
On Thu, 2007-12-06 at 12:31 -0500, José Alburquerque wrote:
What happens is that the signal is only emitted once no matter how
many
times add_signal_watch is called. However, unless
remove_signal_watch
is called the same number of times it appears that a reference to the
Bus is kept and the Bus will not be destroyed.
That does seem very odd and useless. I suggest that we just make sure
that we call remove_signal_watch() enough times in our destructor,
adding to a count whenever add_signal_watch() is called.
And keep the method names enable/disable_message_signal? Also, it seems
the destructor is not called unless the "signal watches" have been
removed first. Maybe a boolean can tell whether the signal has been
enabled and then not have to call add_signal_watch any more.
-Jose
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]