Browse Source

MT#55283 support "text" and "application" media

Change-Id: Id6294eab976e55b4c0bf1c0cfec9ab21b962d5ef
pull/1884/head
Richard Fuchs 1 year ago
parent
commit
1250544719
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      lib/codeclib.h

+ 6
- 0
lib/codeclib.h View File

@ -14,6 +14,8 @@ enum media_type {
MT_VIDEO,
MT_IMAGE,
MT_MESSAGE,
MT_TEXT,
MT_APPLICATION,
MT_OTHER,
__MT_MAX
@ -34,6 +36,10 @@ INLINE enum media_type codec_get_type(const str *type) {
return MT_IMAGE;
if (!str_cmp(type, "message"))
return MT_MESSAGE;
if (!str_cmp(type, "text"))
return MT_TEXT;
if (!str_cmp(type, "application"))
return MT_APPLICATION;
return MT_OTHER;
}


Loading…
Cancel
Save