Mercurial > audlegacy
comparison src/audacious/playlist.c @ 4371:20418bdce637
Fixed a segfault when trying to open fileinfo window while no file is
effectively selected (e.g. when playlist is empty, for example). Patch
adapted from bugzilla #216 from Federico Schwindt.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 25 Mar 2008 21:16:16 +0200 |
parents | 313dd79a2d24 |
children | 342a1a1de225 |
comparison
equal
deleted
inserted
replaced
4370:8ca25aee5037 | 4371:20418bdce637 |
---|---|
2493 tuple = playlist->position->tuple; | 2493 tuple = playlist->position->tuple; |
2494 } | 2494 } |
2495 | 2495 |
2496 PLAYLIST_UNLOCK(playlist); | 2496 PLAYLIST_UNLOCK(playlist); |
2497 | 2497 |
2498 if (playlist->position->decoder != NULL && playlist->position->decoder->update_song_tuple != NULL && | 2498 if (playlist->position != NULL && playlist->position->decoder != NULL && |
2499 playlist->position->decoder->file_info_box == NULL && path != NULL && !vfs_is_remote(path)) { | 2499 playlist->position->decoder->update_song_tuple != NULL && |
2500 playlist->position->decoder->file_info_box == NULL && path != NULL && | |
2501 !vfs_is_remote(path)) { | |
2500 | 2502 |
2501 fileinfo_show_editor_for_path(path, playlist->position->decoder); | 2503 fileinfo_show_editor_for_path(path, playlist->position->decoder); |
2502 g_free(path); | 2504 g_free(path); |
2503 | 2505 |
2504 } else { | 2506 } else { |