denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] 0.9.4rc1 tarball for testing


From: Jeremiah Benham
Subject: Re: [Denemo-devel] 0.9.4rc1 tarball for testing
Date: Fri, 09 Mar 2012 23:08:11 -0600
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 03/09/2012 03:13 AM, Richard Shann wrote:
On Mon, 2012-03-05 at 19:30 -0600, Jeremiah Benham wrote:
I noticed a bug. It only plays
back once. It is easy to reproduce. enter a dew notes, hit f5, then
hit
f5 again. It only plays the first time. Denemo does not crash during
this.
I believe I have fixed this bug. When stopping playing the playback
button is re-drawn as a play rather than pause button. This activity has
to be protected as it is a gtk call. I have moved it into the main loop,
and all seems to be well now.
The change is in midi.c, and I have checked it into main/latest. There
are many more changes in midi.c on master which must not get into the
release.
This shows the bit that is changed:


static gboolean
stop_play_callback(gchar *thescript) {
     call_out_to_guile(thescript);
     g_free(thescript);
     return FALSE;
}

static gboolean update_playbutton_callback(gboolean paused) {
   set_playbutton(paused);
   return FALSE;
}

void stop_playing() {
   update_position(NULL);
   g_idle_add_full(G_PRIORITY_HIGH_IDLE, 
(GSourceFunc)update_playbutton_callback, is_paused(), NULL);
   playing = FALSE;
   play_until = -G_MAXDOUBLE;

Can you get this into the release branch Jeremiah?
Done. I will test this and create a tarball of it.

Jeremiah
Richard






reply via email to

[Prev in Thread] Current Thread [Next in Thread]