plugins/asf: add all streams on video
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 21 Aug 2013 15:53:03 +0000 (12:53 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 26 Aug 2013 22:15:55 +0000 (19:15 -0300)
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

index 8a141c7..7b573db 100644 (file)
@@ -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);
     }