diff options
author | Oliver Lehmann <oliver@FreeBSD.org> | 2006-12-04 15:49:09 +0000 |
---|---|---|
committer | Oliver Lehmann <oliver@FreeBSD.org> | 2006-12-04 15:49:09 +0000 |
commit | 800aaea7abe51944ea81007d4853884b5669798f (patch) | |
tree | a1771263a36a17b8c42fdea8f171de959d59bf63 /multimedia | |
parent | 644148f7dc0f1f049cfa048d5d1b068f951e1f52 (diff) | |
download | ports-800aaea7abe51944ea81007d4853884b5669798f.tar.gz ports-800aaea7abe51944ea81007d4853884b5669798f.zip |
add missing patch files to unbreak build on FreeBSD 4
Notes
Notes:
svn path=/head/; revision=178823
Diffstat (limited to 'multimedia')
3 files changed, 181 insertions, 0 deletions
diff --git a/multimedia/audacious/files/patch-audacious-ui_fileinfo.c b/multimedia/audacious/files/patch-audacious-ui_fileinfo.c new file mode 100644 index 000000000000..21ca442eefca --- /dev/null +++ b/multimedia/audacious/files/patch-audacious-ui_fileinfo.c @@ -0,0 +1,36 @@ +--- audacious/ui_fileinfo.c.orig Fri Dec 1 10:30:29 2006 ++++ audacious/ui_fileinfo.c Fri Dec 1 11:14:37 2006 +@@ -101,6 +101,7 @@ + GdkPixbuf *pixbuf; + int width, height; + double aspect; ++ GdkPixbuf *pixbuf2; + + if (xml == NULL || widget == NULL) + return; +@@ -125,7 +126,7 @@ + height = cfg.filepopup_pixelsize; + width = (int)(cfg.filepopup_pixelsize / aspect); + } +- GdkPixbuf *pixbuf2 = gdk_pixbuf_scale_simple(GDK_PIXBUF(pixbuf), width, height, GDK_INTERP_BILINEAR); ++ pixbuf2 = gdk_pixbuf_scale_simple(GDK_PIXBUF(pixbuf), width, height, GDK_INTERP_BILINEAR); + g_object_unref(G_OBJECT(pixbuf)); + pixbuf = pixbuf2; + } +@@ -154,6 +155,7 @@ + GdkPixbuf *pixbuf; + int width, height; + double aspect; ++ GdkPixbuf *pixbuf2; + + if (xml == NULL || widget == NULL) + return; +@@ -178,7 +180,7 @@ + height = cfg.filepopup_pixelsize; + width = (int)(cfg.filepopup_pixelsize / aspect); + } +- GdkPixbuf *pixbuf2 = gdk_pixbuf_scale_simple(GDK_PIXBUF(pixbuf), width, height, GDK_INTERP_BILINEAR); ++ pixbuf2 = gdk_pixbuf_scale_simple(GDK_PIXBUF(pixbuf), width, height, GDK_INTERP_BILINEAR); + g_object_unref(G_OBJECT(pixbuf)); + pixbuf = pixbuf2; + } diff --git a/multimedia/audacious/files/patch-audacious-ui_playlist.c b/multimedia/audacious/files/patch-audacious-ui_playlist.c new file mode 100644 index 000000000000..bcc6fc5a2029 --- /dev/null +++ b/multimedia/audacious/files/patch-audacious-ui_playlist.c @@ -0,0 +1,14 @@ +--- audacious/ui_playlist.c.orig Fri Dec 1 14:28:04 2006 ++++ audacious/ui_playlist.c Fri Dec 1 14:28:24 2006 +@@ -300,9 +300,10 @@ + gint + playlistwin_get_height_unshaded(void) + { ++ gint height; + cfg.playlist_height /= PLAYLISTWIN_HEIGHT_SNAP; + cfg.playlist_height *= PLAYLISTWIN_HEIGHT_SNAP; +- gint height = cfg.playlist_height; ++ height = cfg.playlist_height; + return height; + } + diff --git a/multimedia/audacious/files/patch-audtool-audtool.c b/multimedia/audacious/files/patch-audtool-audtool.c new file mode 100644 index 000000000000..2d6714ce1f70 --- /dev/null +++ b/multimedia/audacious/files/patch-audtool-audtool.c @@ -0,0 +1,131 @@ +--- audtool/audtool.c.orig Fri Dec 1 15:24:24 2006 ++++ audtool/audtool.c Fri Dec 1 15:40:57 2006 +@@ -377,6 +377,8 @@ + + void playlist_delete(gint session, gint argc, gchar **argv) + { ++ gint playpos; ++ + if (argc < 3) + { + g_print("%s: invalid parameters for playlist-delete.\n", argv[0]); +@@ -384,7 +386,7 @@ + return; + } + +- gint playpos = atoi(argv[2]); ++ playpos = atoi(argv[2]); + + if (playpos < 1 || playpos > xmms_remote_get_playlist_length(session)) + { +@@ -406,6 +408,9 @@ + + void playlist_song(gint session, gint argc, gchar **argv) + { ++ gint playpos; ++ gchar *song; ++ + if (argc < 3) + { + g_print("%s: invalid parameters for playlist-song-title.\n", argv[0]); +@@ -413,7 +418,7 @@ + return; + } + +- gint playpos = atoi(argv[2]); ++ playpos = atoi(argv[2]); + + if (playpos < 1 || playpos > xmms_remote_get_playlist_length(session)) + { +@@ -421,7 +426,7 @@ + return; + } + +- gchar *song = xmms_remote_get_playlist_title(session, playpos - 1); ++ song = xmms_remote_get_playlist_title(session, playpos - 1); + + g_print("%s\n", song); + } +@@ -429,6 +434,8 @@ + + void playlist_song_length(gint session, gint argc, gchar **argv) + { ++ gint playpos, frames, length; ++ + if (argc < 3) + { + g_print("%s: invalid parameters for playlist-song-length.\n", argv[0]); +@@ -436,7 +443,7 @@ + return; + } + +- gint playpos = atoi(argv[2]); ++ playpos = atoi(argv[2]); + + if (playpos < 1 || playpos > xmms_remote_get_playlist_length(session)) + { +@@ -444,14 +451,16 @@ + return; + } + +- gint frames = xmms_remote_get_playlist_time(session, playpos - 1); +- gint length = frames / 1000; ++ frames = xmms_remote_get_playlist_time(session, playpos - 1); ++ length = frames / 1000; + + g_print("%d:%.2d\n", length / 60, length % 60); + } + + void playlist_song_length_seconds(gint session, gint argc, gchar **argv) + { ++ gint playpos, frames, length; ++ + if (argc < 3) + { + g_print("%s: invalid parameters for playlist-song-length-seconds.\n", argv[0]); +@@ -459,7 +468,7 @@ + return; + } + +- gint playpos = atoi(argv[2]); ++ playpos = atoi(argv[2]); + + if (playpos < 1 || playpos > xmms_remote_get_playlist_length(session)) + { +@@ -467,14 +476,16 @@ + return; + } + +- gint frames = xmms_remote_get_playlist_time(session, playpos - 1); +- gint length = frames / 1000; ++ frames = xmms_remote_get_playlist_time(session, playpos - 1); ++ length = frames / 1000; + + g_print("%d\n", length); + } + + void playlist_song_length_frames(gint session, gint argc, gchar **argv) + { ++ gint playpos, frames; ++ + if (argc < 3) + { + g_print("%s: invalid parameters for playlist-song-length-frames.\n", argv[0]); +@@ -482,7 +493,7 @@ + return; + } + +- gint playpos = atoi(argv[2]); ++ playpos = atoi(argv[2]); + + if (playpos < 1 || playpos > xmms_remote_get_playlist_length(session)) + { +@@ -490,7 +501,7 @@ + return; + } + +- gint frames = xmms_remote_get_playlist_time(session, playpos - 1); ++ frames = xmms_remote_get_playlist_time(session, playpos - 1); + + g_print("%d\n", frames); + } |