Mercurial > audlegacy
comparison audacious/playlist.c @ 1550:be50c53aee09 trunk
[svn] - some minimal integration
author | nenolod |
---|---|
date | Thu, 10 Aug 2006 18:36:15 -0700 |
parents | 06329cbf186a |
children | f4ece39e4252 |
comparison
equal
deleted
inserted
replaced
1549:854016a03129 | 1550:be50c53aee09 |
---|---|
47 #include "libaudacious/configdb.h" | 47 #include "libaudacious/configdb.h" |
48 #include "libaudacious/vfs.h" | 48 #include "libaudacious/vfs.h" |
49 #include "equalizer.h" | 49 #include "equalizer.h" |
50 #include "playback.h" | 50 #include "playback.h" |
51 #include "playlist.h" | 51 #include "playlist.h" |
52 #include "playlist_container.h" | |
52 #include "ui_playlist.h" | 53 #include "ui_playlist.h" |
53 #include "urldecode.h" | 54 #include "urldecode.h" |
54 #include "util.h" | 55 #include "util.h" |
55 #include "ui_fileinfo.h" | 56 #include "ui_fileinfo.h" |
56 | 57 |
485 { | 486 { |
486 __playlist_ins_with_info(filename, pos, NULL, -1, dec); | 487 __playlist_ins_with_info(filename, pos, NULL, -1, dec); |
487 playlist_recalc_total_time(); | 488 playlist_recalc_total_time(); |
488 } | 489 } |
489 | 490 |
490 | |
491 PlaylistFormat | |
492 playlist_format_get_from_name(const gchar * filename) | |
493 { | |
494 int i; | |
495 | |
496 for (i = 0; i < PLAYLIST_FORMAT_COUNT; i++) | |
497 { | |
498 if (str_has_suffix_nocase(filename, playlist_format_suffixes[i])) | |
499 return i; | |
500 } | |
501 | |
502 return PLAYLIST_FORMAT_UNKNOWN; | |
503 } | |
504 | |
505 gboolean | |
506 is_playlist_name(const gchar * filename) | |
507 { | |
508 g_return_val_if_fail(filename != NULL, FALSE); | |
509 return playlist_format_get_from_name(filename) != PLAYLIST_FORMAT_UNKNOWN; | |
510 } | |
511 | |
512 gboolean | 491 gboolean |
513 playlist_ins(const gchar * filename, gint pos) | 492 playlist_ins(const gchar * filename, gint pos) |
514 { | 493 { |
515 gchar buf[64], *p; | 494 gchar buf[64], *p; |
516 gint r; | 495 gint r; |
1372 ret = playlist_load_ins(filename, -1); | 1351 ret = playlist_load_ins(filename, -1); |
1373 loading_playlist = FALSE; | 1352 loading_playlist = FALSE; |
1374 | 1353 |
1375 return ret; | 1354 return ret; |
1376 } | 1355 } |
1377 | |
1378 | 1356 |
1379 static void | 1357 static void |
1380 playlist_load_ins_file(const gchar * filename_p, | 1358 playlist_load_ins_file(const gchar * filename_p, |
1381 const gchar * playlist_name, gint pos, | 1359 const gchar * playlist_name, gint pos, |
1382 const gchar * title, gint len) | 1360 const gchar * title, gint len) |