From a4fde168137f8ab3bf0ca2d0c99654d431135684 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 21 Aug 2013 12:53:03 -0300 Subject: [PATCH] plugins/asf: add all streams on video We use the heuristic that a file is of audio type if it contains only audio streams, otherwise it's considered as video. However now we add all the audio/video streams to the database. It suffices to just set the streams pointer since we are already allocating/freeing as we should. --- src/plugins/asf/asf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/asf/asf.c b/src/plugins/asf/asf.c index 8a141c7..7b573db 100644 --- a/src/plugins/asf/asf.c +++ b/src/plugins/asf/asf.c @@ -577,6 +577,7 @@ _parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_in video_info.id = finfo->id; video_info.title = info.title; video_info.artist = info.artist; + video_info.streams = (struct lms_stream *) streams; r = lms_db_video_add(plugin->video_db, &video_info); } -- 2.7.4