1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 04_stack_smasher.dpatch by Jan Luebbe <jluebbe@lasnet.de>
4
## All lines beginning with `## DP:' are a description of the patch.
8
diff -urNad flac-1.1.2~/src/plugin_xmms/configure.c flac-1.1.2/src/plugin_xmms/configure.c
9
--- flac-1.1.2~/src/plugin_xmms/configure.c 2007-01-10 01:25:44.000000000 +0100
10
+++ flac-1.1.2/src/plugin_xmms/configure.c 2007-01-10 01:27:19.000000000 +0100
12
/* libxmms-flac - XMMS FLAC input plugin
13
- * Copyright (C) 2002,2003,2004,2005 Daisuke Shimamura
14
+ * Copyright (C) 2002,2003,2004,2005,2006 Daisuke Shimamura
16
* Based on mpg123 plugin
17
* and prefs.c - 2000/05/06
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30
100 /* KB */, /* http_buffer_size */
31
50, /* http_prebuffer */
32
FALSE, /* use_proxy */
33
- "", /* proxy_host */
34
+ NULL, /* proxy_host */
36
FALSE, /* proxy_use_auth */
37
- "", /* proxy_user */
38
- "", /* proxy_pass */
39
+ NULL, /* proxy_user */
40
+ NULL, /* proxy_pass */
41
FALSE, /* save_http_stream */
42
- "", /* save_http_path */
43
+ NULL, /* save_http_path */
44
FALSE, /* cast_title_streaming */
45
FALSE /* use_udp_channel */
48
flac_cfg.stream.http_prebuffer = (gint) GTK_ADJUSTMENT(streaming_pre_adj)->value;
50
flac_cfg.stream.use_proxy = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(streaming_proxy_use));
51
- g_free(flac_cfg.stream.proxy_host);
52
+ if(flac_cfg.stream.proxy_host)
53
+ g_free(flac_cfg.stream.proxy_host);
54
flac_cfg.stream.proxy_host = g_strdup(gtk_entry_get_text(GTK_ENTRY(streaming_proxy_host_entry)));
55
flac_cfg.stream.proxy_port = atoi(gtk_entry_get_text(GTK_ENTRY(streaming_proxy_port_entry)));
58
GtkWidget *streaming_size_box, *streaming_size_label, *streaming_size_spin;
59
GtkWidget *streaming_pre_box, *streaming_pre_label, *streaming_pre_spin;
60
GtkWidget *streaming_proxy_frame, *streaming_proxy_vbox;
61
- GtkWidget *streaming_proxy_port_label, *streaming_proxy_host_label;
62
+ GtkWidget *streaming_proxy_port_label, *streaming_proxy_host_label;
63
GtkWidget *streaming_save_frame, *streaming_save_vbox;
64
GtkWidget *streaming_save_label, *streaming_save_browse;
67
gtk_box_pack_start(GTK_BOX(streaming_proxy_hbox), streaming_proxy_host_label, FALSE, FALSE, 0);
69
streaming_proxy_host_entry = gtk_entry_new();
70
- gtk_entry_set_text(GTK_ENTRY(streaming_proxy_host_entry), flac_cfg.stream.proxy_host);
71
+ gtk_entry_set_text(GTK_ENTRY(streaming_proxy_host_entry), flac_cfg.stream.proxy_host? flac_cfg.stream.proxy_host : "");
72
gtk_box_pack_start(GTK_BOX(streaming_proxy_hbox), streaming_proxy_host_entry, TRUE, TRUE, 0);
74
streaming_proxy_port_label = gtk_label_new(_("Port:"));
76
gtk_box_pack_start(GTK_BOX(streaming_save_hbox), streaming_save_label, FALSE, FALSE, 0);
78
streaming_save_entry = gtk_entry_new();
79
- gtk_entry_set_text(GTK_ENTRY(streaming_save_entry), flac_cfg.stream.save_http_path);
80
+ gtk_entry_set_text(GTK_ENTRY(streaming_save_entry), flac_cfg.stream.save_http_path? flac_cfg.stream.save_http_path : "");
81
gtk_box_pack_start(GTK_BOX(streaming_save_hbox), streaming_save_entry, TRUE, TRUE, 0);
83
streaming_save_browse = gtk_button_new_with_label(_("Browse"));