Add support for OPUS audio format 04/235904/1
authorSangchul Lee <sc11.lee@samsung.com>
Thu, 11 Jun 2020 02:21:05 +0000 (11:21 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 11 Jun 2020 02:22:27 +0000 (11:22 +0900)
[Version] 0.1.56
[Issue Type] New feature

Change-Id: I2629add7d6d5f00a6dea8290c997a70656757cef
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-streamer.spec
src/media_streamer_util.c

index bb12a9f..8cac7e6 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-streamer
 Summary:    A Media Streamer API
-Version:    0.1.55
+Version:    0.1.56
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 27344c2..87826d4 100644 (file)
@@ -38,6 +38,7 @@ static const format_s format_table[] = {
        {MEDIA_FORMAT_AAC_HE, "audio/mpeg"},
        {MEDIA_FORMAT_AAC_HE_PS, "audio/mpeg"},
        {MEDIA_FORMAT_MP3, "audio/mpeg"},
+       {MEDIA_FORMAT_OPUS, "audio/x-opus"},
        /* Audio - RAW */
        {MEDIA_FORMAT_PCM, "S16LE"},
        {MEDIA_FORMAT_PCM_S24LE, "S24LE"},
@@ -206,6 +207,9 @@ const gchar *ms_convert_mime_to_string_format(media_format_mimetype_e mime)
                }
        }
 
+       if (!format_name)
+               ms_warning("Not supported this mimetype[0x%x]", mime);
+
        ms_debug_fleave();
 
        return format_name;