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

index 9144545..0ead86a 100644 (file)
 #define DECL_STR(cname, str)                                            \
     static const struct lms_string_size cname = LMS_STATIC_STRING_SIZE(str)
 
-DECL_STR(_dlna_lpcm, "LPCM");
-
-DECL_STR(_dlna_mime_44_mono, "audio/L16;rate=44100;channels=1");
-DECL_STR(_dlna_mime_44_stereo, "audio/L16;rate=44100;channels=2");
-DECL_STR(_dlna_mime_48_mono, "audio/L16;rate=48000;channels=1");
-DECL_STR(_dlna_mime_48_stereo, "audio/L16;rate=48000;channels=2");
-#undef DECL_STR
-
-static void
-_fill_dlna_profile(struct lms_audio_info *info)
-{
-    if (info->channels == 1 && info->sampling_rate == 44100) {
-        info->dlna_profile = _dlna_lpcm;
-        info->dlna_mime = _dlna_mime_44_mono;
-    } else if (info->channels == 2 && info->sampling_rate == 44100) {
-        info->dlna_profile = _dlna_lpcm;
-        info->dlna_mime = _dlna_mime_44_stereo;
-    } else if (info->channels == 1 && info->sampling_rate == 48000) {
-        info->dlna_profile = _dlna_lpcm;
-        info->dlna_mime = _dlna_mime_48_mono;
-    } else if (info->channels == 2 && info->sampling_rate == 48000) {
-        info->dlna_profile = _dlna_lpcm;
-        info->dlna_mime = _dlna_mime_48_stereo;
-    }
-}
-
 static const char _name[] = "wave";
 static const struct lms_string_size _exts[] = {
     LMS_STATIC_STRING_SIZE(".wav"),
@@ -260,8 +234,6 @@ _parse(struct plugin *plugin, struct lms_context *ctxt,
 
     info.id = finfo->id;
 
-    _fill_dlna_profile(&info);
-
     r = lms_db_audio_add(plugin->audio_db, &info);
 
 done: