Mercurial > audlegacy
comparison src/audlegacy/playlist_container.c @ 4852:c4698861e8fb
Fix .M files being recognized as playlists.
Pointed out by Chainsaw.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Tue, 14 Apr 2009 15:16:54 -0500 |
parents | 7bf7f83a217e |
children | 4beca46cb92b |
comparison
equal
deleted
inserted
replaced
4851:8ebd8358de04 | 4852:c4698861e8fb |
---|---|
1 /* | 1 a/* |
2 * Audacious: A cross-platform multimedia player | 2 * Audacious: A cross-platform multimedia player |
3 * Copyright (c) 2006-2007 William Pitcock, Tony Vroon, George Averill, | 3 * Copyright (c) 2006-2007 William Pitcock, Tony Vroon, George Averill, |
4 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa. | 4 * Giacomo Lozito, Derek Pomery and Yoshiki Yazawa. |
5 * | 5 * |
6 * This program is free software; you can redistribute it and/or modify | 6 * This program is free software; you can redistribute it and/or modify |
49 g_return_val_if_fail(ext != NULL && ext != (void *)1, NULL); | 49 g_return_val_if_fail(ext != NULL && ext != (void *)1, NULL); |
50 | 50 |
51 for (node = registered_plcs; node != NULL; node = g_list_next(node)) { | 51 for (node = registered_plcs; node != NULL; node = g_list_next(node)) { |
52 plc = PLAYLIST_CONTAINER(node->data); | 52 plc = PLAYLIST_CONTAINER(node->data); |
53 | 53 |
54 if (!g_ascii_strncasecmp(plc->ext, ext, strlen(ext))) | 54 if (!g_ascii_strncasecmp(plc->ext, ext, strlen(plc->ext))) |
55 return plc; | 55 return plc; |
56 } | 56 } |
57 | 57 |
58 return NULL; | 58 return NULL; |
59 } | 59 } |