diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-02 18:53:04 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-02 18:53:04 +0200 |
commit | cfd7269f3cde81945792d731aae23aba24ef9b0e (patch) | |
tree | 99a75e28cfddb4db8c3ee0daeef74487d79ab7ea /playlist.c | |
parent | 18105c8b91dbe5a45bff2021c83696eba884444c (diff) |
possible crashbug in pls loader
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -883,7 +883,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play char title[1024] = ""; char length[20] = ""; LOCK; - pl_item_ref (after); while (p < end) { p = pl_str_skipspaces (p, end); if (p >= end) { @@ -907,9 +906,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play } } if (pabort && *pabort) { - if (after) { - pl_item_ref (after); - } UNLOCK; return after; } @@ -987,9 +983,6 @@ pl_insert_pls (playItem_t *after, const char *fname, int *pabort, int (*cb)(play if (url[0]) { playItem_t *it = pl_insert_file (after, url, pabort, cb, user_data); if (it) { - if (after) { - pl_item_unref (after); - } after = it; pl_set_item_duration (it, atoi (length)); if (title[0]) { |