3 --- main.c.orig 2010-06-23 08:37:56.000000000 +0000
5 @@ -55,6 +55,7 @@ GdkPixbuf *questionmark;
7 gchar *last_canteen = NULL;
11 GdkPixbuf* scale_width(GdkPixbuf* pb, float nw) {
12 double width = gdk_pixbuf_get_width(pb);
13 @@ -352,7 +353,7 @@ guint64 pos_within_track(int tr) {
19 GtkWidget* pausebutton = GTK_WIDGET(gtk_builder_get_object(builder, "tool_play"));
21 gst_element_set_state(pipeline, GST_STATE_PAUSED);
22 @@ -577,7 +578,7 @@ void next_cb() {
28 gst_element_set_state(pipeline, GST_STATE_NULL);
31 @@ -597,10 +598,12 @@ void seek_cb (gpointer seekbar) {
33 void pause_cb(gpointer seekbar) {
39 gboolean progress_timeout_cb(gpointer seekbar) {
40 + if (shutting_down) /* seekbar can be already invalid */
43 g_signal_handlers_block_by_func(seekbar, seek_cb, seekbar);
45 @@ -861,6 +864,7 @@ main (int argc, char *argv[])
46 gst_element_set_state(pipeline, GST_STATE_NULL);
47 gst_object_unref(GST_OBJECT(pipeline));
50 g_object_unref (G_OBJECT (builder));
51 g_object_unref (G_OBJECT (gconf));