aboutsummaryrefslogtreecommitdiff
path: root/src/tag.c
Commit message (Collapse)AuthorAge
* tag_pool: use GStaticMutexMax Kellermann2012-08-08
| | | | Eliminates explicit global initialisation.
* tag: add attribute "has_playlist"Max Kellermann2012-02-12
|
* copyright year 2011Max Kellermann2011-01-29
|
* eliminate g_error() usageThomas Jansen2010-09-25
| | | | | | | | | | | | | | Replaced all occurrences of g_error() with MPD_ERROR() located in a new header file 'mpd_error.h'. This macro uses g_critical() to print the error message and then exits gracefully in contrast to g_error() which would internally call abort() to produce a core dump. The macro name is distinctive and allows to find all places with dubious error handling. The long-term goal is to get rid of MPD_ERROR() altogether. To facilitate the eventual removal of this macro it was added in a new header file rather than to an existing header file. This fixes #2995 and #3007.
* Merge release 0.15.9 from branch 'v0.15.x'Max Kellermann2010-03-28
|\ | | | | | | | | | | | | | | | | Conflicts: NEWS configure.ac src/cue/cue_tag.c src/decoder/mpcdec_decoder_plugin.c src/player_thread.c
| * tag: added function tag_merge_replace()Max Kellermann2010-03-17
| | | | | | | | | | Like tag_merge(), but can deal with NULL parameters, and frees both tag objects.
* | tag: fixed memmove() size argument in tag_delete_item()Max Kellermann2010-01-06
| | | | | | | | This function has always been broken, but fortunately nobody used it.
* | Update copyright notices.Avuton Olrich2009-12-31
| |
* | include config.h in all sourcesMax Kellermann2009-11-12
| | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue.
* | tag: added function tag_name_parse()Max Kellermann2009-11-04
| | | | | | | | Convert a string into a tag_type enum.
* | tag: removed the "_ITEM_" suffix from the enum namesMax Kellermann2009-10-13
| |
* | Implement ArtistSort tagBart Nagel2009-07-09
| |
* | tag: added tag "AlbumArtistSort"Max Kellermann2009-07-07
|/ | | | | | | | The tag_id3.c library supports both the documented "TSO2" tag, and the inofficial TXXX/ALBUMARTISTSORT. The Vorbis/FLAC decoder automatically supports the new tag, without further change.
* song_save: don't call tag_free(NULL)Max Kellermann2009-04-28
| | | | | | When a song was in the database twice (which shouldn't happen), and the first song had no tag items, MPD calledd tag_free(NULL). Add a check to that source location, and an assertion to tag_free().
* tag: use g_ascii_strcasecmp() instead of strcasecmp()Max Kellermann2009-04-28
| | | | | strcasecmp() is locale dependent, making it a bad choice for internal string comparisons.
* log: removed DEBUG() and FATAL()Max Kellermann2009-03-15
| | | | Use GLib the logging functions g_debug(), g_error() instead.
* all: Update copyright header.Avuton Olrich2009-03-13
| | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
* tag: convert ignore_tag_items to a bool arrayMax Kellermann2009-03-01
|
* tag: no CamelCaseMax Kellermann2009-03-01
| | | | Renamed functions and variables.
* tag: moved APE code to tag_ape.cMax Kellermann2009-02-28
|
* tag: don't accept invalid UTF-8 sequencesMax Kellermann2009-02-27
| | | | Overwrite invalid UTF-8 sequences with question marks.
* tag: make tag.num_items unsignedMax Kellermann2009-02-27
| | | | | | There's no point in declaring num_items as a uint8_t, it doesn't save any space, due to padding. This allows us to lift the articial "255 items" limitation.
* tag: no CamelCaseMax Kellermann2009-02-27
| | | | Renamed numOfItems to num_items.
* tag: make tag_equal() return boolMax Kellermann2009-02-27
|
* tag: fixed typo in MUSICBRAINZ_TRACKID tag nameMax Kellermann2009-02-17
|
* tag: remove unused variable paramLaszlo Ashin2009-01-25
| | | | This variable doesn't have a role since 80799fa8.
* use g_free() instead of free()Max Kellermann2009-01-25
| | | | | | On some platforms, g_free() must be used for memory allocated by GLib. This patch intends to correct a lot of occurrences, but is probably not complete.
* conf: const pointers in block get functionsMax Kellermann2009-01-25
| | | | | All config_get_block_*() functions should accept constant config_param pointers.
* use config_get_string() instead of config_get_param()Max Kellermann2009-01-25
| | | | | config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
* tag: added support for MusicBrainz tagsMax Kellermann2009-01-24
| | | | | | | | | Added all important id tags from the MusicBrainz wiki: http://musicbrainz.org/doc/MusicBrainzTag This should automatically enable its suport in the vorbis and flac decoder plugins.
* conf: no CamelCase, part IMax Kellermann2009-01-17
| | | | Renamed functions, types, variables.
* tag: added tag_get_value()Max Kellermann2009-01-15
|
* tag: added core support for the "album artist" tagMax Kellermann2009-01-13
| | | | | | | | Added TAG_ITEM_ALBUM_ARTIST. With this patch, MPD should be able to read the (inofficial) "ALBUMARTIST" Vorbis comment. Implementations in other decoder plugins will follow soon.
* tag: allocate space for null terminator in clear_non_printable()Max Kellermann2009-01-04
| | | | Use g_strndup() instead of g_memdup().
* path, tag: don't allocate GError for charset conversionMax Kellermann2009-01-04
| | | | | Pass NULL instead of &error to g_convert(). We're not interested in the error object.
* tag: added function tag_merge()Max Kellermann2009-01-03
| | | | tag_merges() merges the data from two tag objects into one.
* tag: revert g_strescape() patchMax Kellermann2009-01-03
| | | | | | Don't use g_strescape(), because it escapes all non-ASCII characters. Add a new function which clears all non-printable characters, not just "newline".
* tag: use g_strescape() to eliminate evil charactersMax Kellermann2009-01-03
| | | | | This always allocates strings on the heap, but we can delete the stripReturnChar() function now.
* tag & tag_pool: migrate from pthread to glib threadsThomas Jansen2008-12-28
|
* tag: added function tag_has_type()Max Kellermann2008-11-03
| | | | | tag_has_type() checks whether the tag contains one or more items with the specified type.
* tag: use GLib instead of utils.hMax Kellermann2008-11-01
| | | | Don't use the deprecated functions from utils.h.
* utils: use GUINT32_FROM_LE() instead of readLEuint32()Max Kellermann2008-11-01
| | | | Eliminate code already provided by GLib.
* tag: don't return const string from fix_utf8()Max Kellermann2008-11-01
| | | | | Return NULL instead of the input value if there is nothing to fix. This way, the caller doesn't have to use the xfree() hack.
* removed UTF-8 library, use GLib insteadMax Kellermann2008-10-31
| | | | Removed duplicated code.
* don't include os_compat.hMax Kellermann2008-10-08
| | | | | When there are standardized headers, use these instead of the bloated os_compat.h.
* tag: merge clearMpdTag into tag_freeEric Wong2008-10-06
| | | | | avoid some redundant clearing logic as well, since the tag is getting freed.
* Switch to C99 types (retaining compat with old compilers)Eric Wong2008-09-29
| | | | | | | | | | | | | | | Seeing the "mpd_" prefix _everywhere_ is mind-numbing as the mind needs to retrain itself to skip over the first 4 tokens of a type to get to its meaning. So avoid having extra characters on my terminal to make it easier to follow code at 2:30 am in the morning. Please report any new issues you may come across on Free toolchains. I realize how difficult it can be to build/maintain cross-compiling toolchains and I have no intention of forcing people to upgrade their toolchains to build mpd. Tested with gcc 2.95.4 and and gcc 4.3.1 on x86-32.
* use strset.h instead of tagTracker.hMax Kellermann2008-09-08
| | | | | | | With a large music database, the linear string collection in tagTracker.c becomes very slow. We implemented that in a quick'n'dirty fashion when we removed tree.c, and now we rewrite it using the fast hashed string set.
* tag: oops, of course items is now ** and not *Eric Wong2008-09-07
| | | | | | Gah, it seems like doing sizeof here either way is error prone. Too easy to leave out a '*' character we can forget.
* tag: lock all accesses to tag_poolEric Wong2008-09-07
| | | | | | | | | | The tag pool is a shared global resource that is infrequently modified. However, it can occasionally be modified by several threads, especially by the metadata_pipe for streaming metadata (both reading/writing). The bulk tag_item pool is NOT locked as currently only the update thread uses it.