Skip to content

Commit

Permalink
Need pl_lock/unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Jun 30, 2018
1 parent 5aa78ff commit 8f627e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pulse.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ static pa_proplist* get_stream_prop_song(DB_playItem_t *track)

char buf[1000];
const char *artist, *title;
deadbeef->pl_lock();
artist = deadbeef->pl_find_meta(track, "artist");
title = deadbeef->pl_find_meta(track, "title");
snprintf (buf, sizeof(buf), "%s - %s", artist, title);
Expand All @@ -157,6 +158,7 @@ static pa_proplist* get_stream_prop_song(DB_playItem_t *track)
rc = pa_proplist_sets(pl, PA_PROP_MEDIA_FILENAME, deadbeef->pl_find_meta(track, ":URI"));
BUG_ON(rc);

deadbeef->pl_unlock();
if (notrackgiven) deadbeef->pl_item_unref(track);
}
return pl;
Expand Down

0 comments on commit 8f627e5

Please sign in to comment.