summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 17:48:35 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-23 17:48:35 +0100
commitd1fd877d83c895bc399682e23f123c94233c42fc (patch)
tree0767cc9aeee57a2690814987ae6227a35561949b /plugins
parentfa6b1f9f77cdfae8d59c69a85e6ae9c4b3fe8812 (diff)
refcounted playitems
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ffap/ffap.c4
-rw-r--r--plugins/ffmpeg/ffmpeg.c2
-rw-r--r--plugins/flac/flac.c4
-rw-r--r--plugins/lastfm/lastfm.c4
-rw-r--r--plugins/mpgmad/mpgmad.c2
-rw-r--r--plugins/vorbis/vorbis.c4
-rw-r--r--plugins/wavpack/wavpack.c2
7 files changed, 11 insertions, 11 deletions
diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c
index 0a4e3276..4319fd5f 100644
--- a/plugins/ffap/ffap.c
+++ b/plugins/ffap/ffap.c
@@ -1721,7 +1721,7 @@ ffap_insert (DB_playItem_t *after, const char *fname) {
DB_playItem_t *cue = deadbeef->pl_insert_cue (after, it, ape_ctx.totalsamples, ape_ctx.samplerate);
if (cue) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue;
}
@@ -1730,7 +1730,7 @@ ffap_insert (DB_playItem_t *after, const char *fname) {
if (cuesheet) {
cue = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), ape_ctx.totalsamples, ape_ctx.samplerate);
if (cue) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue;
}
}
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index 0aa91527..ed690edf 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -500,7 +500,7 @@ ffmpeg_insert (DB_playItem_t *after, const char *fname) {
// external cuesheet
DB_playItem_t *cue = deadbeef->pl_insert_cue (after, it, totalsamples, samplerate);
if (cue) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue;
}
// now the track is ready, insert into playlist
diff --git a/plugins/flac/flac.c b/plugins/flac/flac.c
index f621b50f..dbb355d3 100644
--- a/plugins/flac/flac.c
+++ b/plugins/flac/flac.c
@@ -631,7 +631,7 @@ cflac_insert (DB_playItem_t *after, const char *fname) {
if (cuesheet) {
DB_playItem_t *last = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), info.totalsamples, info.info.samplerate);
if (last) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return last;
}
}
@@ -659,7 +659,7 @@ cflac_insert (DB_playItem_t *after, const char *fname) {
return after;
cflac_insert_fail:
if (it) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
}
if (decoder) {
FLAC__stream_decoder_delete(decoder);
diff --git a/plugins/lastfm/lastfm.c b/plugins/lastfm/lastfm.c
index 3a8de2c0..d441a8c2 100644
--- a/plugins/lastfm/lastfm.c
+++ b/plugins/lastfm/lastfm.c
@@ -618,7 +618,7 @@ lfm_send_submissions (void) {
deadbeef->mutex_lock (lfm_mutex);
for (i = 0; i < LFM_SUBMISSION_QUEUE_SIZE; i++) {
if (lfm_subm_queue[i]) {
- deadbeef->pl_item_free (lfm_subm_queue[i]);
+ deadbeef->pl_item_unref (lfm_subm_queue[i]);
lfm_subm_queue[i] = NULL;
}
}
@@ -633,7 +633,7 @@ lfm_send_submissions (void) {
deadbeef->mutex_lock (lfm_mutex);
for (i = 0; i < LFM_SUBMISSION_QUEUE_SIZE; i++) {
if (lfm_subm_queue[i]) {
- deadbeef->pl_item_free (lfm_subm_queue[i]);
+ deadbeef->pl_item_unref (lfm_subm_queue[i]);
lfm_subm_queue[i] = NULL;
}
}
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index b954d39e..d2355dc5 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -1059,7 +1059,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
// FIXME! bad numsamples passed to cue
DB_playItem_t *cue_after = deadbeef->pl_insert_cue (after, it, buffer.duration*buffer.samplerate, buffer.samplerate);
if (cue_after) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue_after;
}
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 3e7ddefb..6a69b57b 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -394,7 +394,7 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) {
DB_playItem_t *cue = deadbeef->pl_insert_cue (after, it, totalsamples, samplerate);
if (cue) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue;
}
@@ -403,7 +403,7 @@ cvorbis_insert (DB_playItem_t *after, const char *fname) {
if (cuesheet) {
cue = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), totalsamples, samplerate);
if (cue) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return cue;
}
}
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c
index 7c2aa350..19dcf3f3 100644
--- a/plugins/wavpack/wavpack.c
+++ b/plugins/wavpack/wavpack.c
@@ -264,7 +264,7 @@ wv_insert (DB_playItem_t *after, const char *fname) {
if (cuesheet) {
DB_playItem_t *last = deadbeef->pl_insert_cue_from_buffer (after, it, cuesheet, strlen (cuesheet), totalsamples, samplerate);
if (last) {
- deadbeef->pl_item_free (it);
+ deadbeef->pl_item_unref (it);
return last;
}
}