asf: remove all the dlna stuff from plugin
authorLeandro Dorileo <leandro.maciel.dorileo@intel.com>
Fri, 17 Jan 2014 12:37:19 +0000 (10:37 -0200)
committerLeandro Dorileo <leandro.maciel.dorileo@intel.com>
Wed, 29 Jan 2014 12:15:44 +0000 (10:15 -0200)
src/plugins/asf/asf.c

index 51f5905..88328f4 100644 (file)
@@ -56,34 +56,7 @@ DECL_STR(_codec_video_wmv1, "wmv1");
 DECL_STR(_codec_video_wmv2, "wmv2");
 DECL_STR(_codec_video_wmv3, "wmv3");
 
-DECL_STR(_dlna_wma_base, "WMABASE");
-DECL_STR(_dlna_wma_full, "WMAFULL");
-DECL_STR(_dlna_wma_pro, "WMAPRO");
-DECL_STR(_dlna_wma_mime, "audio/x-ms-wma");
-
 DECL_STR(_str_unknown, "<UNKNOWN>");
-#undef DECL_STR
-
-static void
-_fill_audio_dlna_profile(struct lms_audio_info *info)
-{
-    if ((info->codec.str == _codec_audio_wmav1.str ||
-         info->codec.str == _codec_audio_wmav2.str) &&
-        (info->sampling_rate <= 48000)) {
-        info->dlna_mime = _dlna_wma_mime;
-        if (info->bitrate <= 192999)
-            info->dlna_profile = _dlna_wma_base;
-        else
-            info->dlna_profile = _dlna_wma_full;
-    } else if (
-        info->codec.str == _codec_audio_wmavpro.str &&
-        info->sampling_rate <= 96000 &&
-        info->channels <= 8 &&
-        info->bitrate <= 1500000) {
-        info->dlna_mime = _dlna_wma_mime;
-        info->dlna_profile = _dlna_wma_pro;
-    }
-}
 
 enum AttributeTypes {
     ATTR_TYPE_UNICODE = 0,
@@ -816,8 +789,6 @@ _parse(struct plugin *plugin, struct lms_context *ctxt, const struct lms_file_in
             audio_info.codec = s->base.codec;
         }
 
-        _fill_audio_dlna_profile(&audio_info);
-
         r = lms_db_audio_add(plugin->audio_db, &audio_info);
     } else {
         struct lms_video_info video_info = { };