Mercurial > audlegacy-plugins
comparison src/streambrowser/streambrowser.c @ 2811:7977bdc02664
added GPL headers
| author | Calin Crisan ccrisan@gmail.com |
|---|---|
| date | Sat, 12 Jul 2008 13:55:57 +0300 |
| parents | b1e4929e0990 |
| children | cc6f02424609 |
comparison
equal
deleted
inserted
replaced
| 2810:b1e4929e0990 | 2811:7977bdc02664 |
|---|---|
| 1 /* | |
| 2 * Audacious Streambrowser Plugin | |
| 3 * | |
| 4 * Copyright (c) 2008 Calin Crisan <ccrisan@gmail.com> | |
| 5 * | |
| 6 * This program is free software; you can redistribute it and/or modify | |
| 7 * it under the terms of the GNU General Public License as published by | |
| 8 * the Free Software Foundation; under version 3 of the License. | |
| 9 * | |
| 10 * This program is distributed in the hope that it will be useful, | |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 * GNU General Public License for more details. | |
| 14 * | |
| 15 * You should have received a copy of the GNU General Public License | |
| 16 * along with this program. If not, see <http://www.gnu.org/licenses>. | |
| 17 */ | |
| 18 | |
| 1 | 19 |
| 2 #include <stdlib.h> | 20 #include <stdlib.h> |
| 3 #include <gtk/gtk.h> | 21 #include <gtk/gtk.h> |
| 4 #include <audacious/plugin.h> | 22 #include <audacious/plugin.h> |
| 5 #include <audacious/ui_plugin_menu.h> | 23 #include <audacious/ui_plugin_menu.h> |
| 388 failure("shoutcast: stream playlist '%s' could not be downloaded to '%s'\n", streaminfo->playlist_url, PLAYLIST_TEMP_FILE); | 406 failure("shoutcast: stream playlist '%s' could not be downloaded to '%s'\n", streaminfo->playlist_url, PLAYLIST_TEMP_FILE); |
| 389 return; | 407 return; |
| 390 } | 408 } |
| 391 debug("stream playlist '%s' successfuly downloaded to '%s'\n", streaminfo->playlist_url, PLAYLIST_TEMP_FILE); | 409 debug("stream playlist '%s' successfuly downloaded to '%s'\n", streaminfo->playlist_url, PLAYLIST_TEMP_FILE); |
| 392 | 410 |
| 393 aud_playlist_add(aud_playlist_get_active(), PLAYLIST_TEMP_FILE); | 411 aud_playlist_add_url(aud_playlist_get_active(), PLAYLIST_TEMP_FILE); |
| 394 } | 412 } |
| 395 | 413 |
| 396 static void on_plugin_services_menu_item_click() | 414 static void on_plugin_services_menu_item_click() |
| 397 { | 415 { |
| 398 debug("on_plugin_services_menu_item_click()\n"); | 416 debug("on_plugin_services_menu_item_click()\n"); |
