From: Lucas De Marchi Date: Wed, 21 Aug 2013 15:53:03 +0000 (-0300) Subject: plugins/asf: add all streams on video X-Git-Tag: accepted/tizen/generic/20140106.140339~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4fde168137f8ab3bf0ca2d0c99654d431135684;p=platform%2Fupstream%2Flightmediascanner.git 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. --- 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); }