diff options
Diffstat (limited to 'lib/rbcodec/metadata/metadata.c')
-rw-r--r-- | lib/rbcodec/metadata/metadata.c | 12 |
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) | |||
307 | } | 307 | } |
308 | 308 | ||
309 | /* Get the basic audio type */ | 309 | /* Get the basic audio type */ |
310 | enum data_type get_audio_base_data_type(int afmt) | 310 | bool rbcodec_format_is_atomic(int afmt) |
311 | { | 311 | { |
312 | if ((unsigned)afmt >= AFMT_NUM_CODECS) | 312 | if ((unsigned)afmt >= AFMT_NUM_CODECS) |
313 | return TYPE_UNKNOWN; | 313 | return false; |
314 | 314 | ||
315 | switch (get_audio_base_codec_type(afmt)) | 315 | switch (get_audio_base_codec_type(afmt)) |
316 | { | 316 | { |
@@ -327,15 +327,11 @@ enum data_type get_audio_base_data_type(int afmt) | |||
327 | case AFMT_KSS: | 327 | case AFMT_KSS: |
328 | /* Type must be allocated and loaded in its entirety onto | 328 | /* Type must be allocated and loaded in its entirety onto |
329 | the buffer */ | 329 | the buffer */ |
330 | return TYPE_ATOMIC_AUDIO; | 330 | return true; |
331 | 331 | ||
332 | default: | 332 | default: |
333 | /* Assume type may be loaded and discarded incrementally */ | 333 | /* Assume type may be loaded and discarded incrementally */ |
334 | return TYPE_PACKET_AUDIO; | 334 | return false; |
335 | |||
336 | case AFMT_UNKNOWN: | ||
337 | /* Have no idea at all */ | ||
338 | return TYPE_UNKNOWN; | ||
339 | } | 335 | } |
340 | } | 336 | } |
341 | 337 | ||