summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--playlist.c1
-rw-r--r--plugins/ffmpeg/ffmpeg.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/playlist.c b/playlist.c
index e7f4391b..ee7801c0 100644
--- a/playlist.c
+++ b/playlist.c
@@ -1937,6 +1937,7 @@ playItem_t *
pl_item_alloc (void) {
playItem_t *it = malloc (sizeof (playItem_t));
memset (it, 0, sizeof (playItem_t));
+ it->_duration = -1;
it->_refc = 1;
return it;
}
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c
index 742fc928..5955c785 100644
--- a/plugins/ffmpeg/ffmpeg.c
+++ b/plugins/ffmpeg/ffmpeg.c
@@ -526,7 +526,6 @@ ffmpeg_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
int totalsamples = fctx->duration * samplerate / AV_TIME_BASE;
DB_playItem_t *it = deadbeef->pl_item_alloc_init (fname, plugin.plugin.id);
- // FIXME: get proper codec
deadbeef->pl_replace_meta (it, ":FILETYPE", codec->name);
if (!deadbeef->is_local_file (deadbeef->pl_find_meta (it, ":URI"))) {