diff options
author | Max Kellermann <max@duempel.org> | 2013-10-28 23:58:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-28 23:58:17 +0100 |
commit | 20597b3632d3b6e25ba532716106f90d5b64d0e8 (patch) | |
tree | fa6dabaff127150caf3cf4723257f15ef2c3e0f8 /src/decoder/FfmpegMetaData.cxx | |
parent | 4728735acf20fba24d0d03ab431160e250325869 (diff) | |
download | mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.gz mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.xz mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.zip |
*: use nullptr instead of NULL
Diffstat (limited to 'src/decoder/FfmpegMetaData.cxx')
-rw-r--r-- | src/decoder/FfmpegMetaData.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/decoder/FfmpegMetaData.cxx b/src/decoder/FfmpegMetaData.cxx index 17255f0a4..6e92b4a13 100644 --- a/src/decoder/FfmpegMetaData.cxx +++ b/src/decoder/FfmpegMetaData.cxx @@ -32,7 +32,7 @@ static const struct tag_table ffmpeg_tags[] = { { "album_artist-sort", TAG_ALBUM_ARTIST_SORT }, /* sentinel */ - { NULL, TAG_NUM_OF_ITEM_TYPES } + { nullptr, TAG_NUM_OF_ITEM_TYPES } }; static void @@ -40,9 +40,9 @@ ffmpeg_copy_metadata(TagType type, AVDictionary *m, const char *name, const struct tag_handler *handler, void *handler_ctx) { - AVDictionaryEntry *mt = NULL; + AVDictionaryEntry *mt = nullptr; - while ((mt = av_dict_get(m, name, mt, 0)) != NULL) + while ((mt = av_dict_get(m, name, mt, 0)) != nullptr) tag_handler_invoke_tag(handler, handler_ctx, type, mt->value); } @@ -51,9 +51,9 @@ static void ffmpeg_scan_pairs(AVDictionary *dict, const struct tag_handler *handler, void *handler_ctx) { - AVDictionaryEntry *i = NULL; + AVDictionaryEntry *i = nullptr; - while ((i = av_dict_get(dict, "", i, AV_DICT_IGNORE_SUFFIX)) != NULL) + while ((i = av_dict_get(dict, "", i, AV_DICT_IGNORE_SUFFIX)) != nullptr) tag_handler_invoke_pair(handler, handler_ctx, i->key, i->value); } @@ -67,10 +67,10 @@ ffmpeg_scan_dictionary(AVDictionary *dict, handler, handler_ctx); for (const struct tag_table *i = ffmpeg_tags; - i->name != NULL; ++i) + i->name != nullptr; ++i) ffmpeg_copy_metadata(i->type, dict, i->name, handler, handler_ctx); - if (handler->pair != NULL) + if (handler->pair != nullptr) ffmpeg_scan_pairs(dict, handler, handler_ctx); } |