flac/flac-xmms-fix.diff

35 lines
1.7 KiB
Diff

--- src/plugin_xmms/http.c-dist 2005-05-25 16:14:03.000000000 +0200
+++ src/plugin_xmms/http.c 2005-05-25 16:17:30.000000000 +0200
@@ -484,8 +484,8 @@ static int http_connect (gchar *url_, gb
flac_cfg.stream.use_udp_channel ? udpspace : "");
if (offset && !head) {
gchar *temp_dead = temp;
- temp = g_strconcat ("%sRange: %ll-\r\n", temp, offset);
+ temp = g_strdup_printf("%sRange: %llu-\r\n", temp, offset);
fprintf (stderr, "%s", temp);
g_free (temp_dead);
}
--- src/plugin_xmms/plugin.c-dist 2005-02-02 07:06:44.000000000 +0100
+++ src/plugin_xmms/plugin.c 2005-08-10 12:48:23.000000000 +0200
@@ -270,7 +270,7 @@ void FLAC_XMMS__init()
xmms_cfg_read_boolean(cfg, "flac", "stream.save_http_stream", &flac_cfg.stream.save_http_stream);
if (!xmms_cfg_read_string(cfg, "flac", "stream.save_http_path", &flac_cfg.stream.save_http_path) ||
! *flac_cfg.stream.save_http_path) {
- if (flac_cfg.stream.save_http_path)
+ if (flac_cfg.stream.save_http_path && *flac_cfg.stream.save_http_path)
g_free (flac_cfg.stream.save_http_path);
flac_cfg.stream.save_http_path = homedir();
}
--- src/plugin_xmms/configure.c-dist 2005-08-10 13:03:54.000000000 +0200
+++ src/plugin_xmms/configure.c 2005-08-10 14:34:39.000000000 +0200
@@ -179,7 +179,7 @@ static void flac_configurewin_ok(GtkWidg
flac_cfg.stream.save_http_stream = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(streaming_save_use));
- if (flac_cfg.stream.save_http_path)
+ if (flac_cfg.stream.save_http_path && *flac_cfg.stream.save_http_path)
g_free(flac_cfg.stream.save_http_path);
flac_cfg.stream.save_http_path = g_strdup(gtk_entry_get_text(GTK_ENTRY(streaming_save_entry)));