summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/metadata/metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/metadata/metadata.c')
-rw-r--r--lib/rbcodec/metadata/metadata.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/rbcodec/metadata/metadata.c b/lib/rbcodec/metadata/metadata.c
index b91e00cc4e..6837e97316 100644
--- a/lib/rbcodec/metadata/metadata.c
+++ b/lib/rbcodec/metadata/metadata.c
@@ -307,10 +307,10 @@ int get_audio_base_codec_type(int type)
}
/* Get the basic audio type */
-enum data_type get_audio_base_data_type(int afmt)
+bool rbcodec_format_is_atomic(int afmt)
{
if ((unsigned)afmt >= AFMT_NUM_CODECS)
- return TYPE_UNKNOWN;
+ return false;
switch (get_audio_base_codec_type(afmt))
{
@@ -327,15 +327,11 @@ enum data_type get_audio_base_data_type(int afmt)
case AFMT_KSS:
/* Type must be allocated and loaded in its entirety onto
the buffer */
- return TYPE_ATOMIC_AUDIO;
+ return true;
default:
/* Assume type may be loaded and discarded incrementally */
- return TYPE_PACKET_AUDIO;
-
- case AFMT_UNKNOWN:
- /* Have no idea at all */
- return TYPE_UNKNOWN;
+ return false;
}
}