1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 01:52:19 +00:00
mpv/common
wm4 8144d142e4 player: don't set tag strings to NULL
bstr is a bounded string type, consisting of a pointer and a length
value. If the length is 0, the pointer can be NULL. This is somewhat
logical due to how this abstraction works, but it can leak when
converting to C strings.

talloc_strndup() returns NULL instead of "" in this case, which broke
some other code. Use bstrto0() instead, which is the "proper" function
to convert bstr to char*.

Fixes #1462.
2015-01-12 14:33:56 +01:00
..
av_common.c player: use libavutil API to get number of CPUs 2015-01-05 12:34:34 +01:00
av_common.h player: print used number of threads in verbose mode 2015-01-05 12:17:55 +01:00
av_log.c av_log: add tons of warnings against mismatched ffmpeg/libav libraries 2014-02-10 23:28:10 +01:00
av_log.h av_log: mp_msg conversion 2013-12-21 21:43:16 +01:00
codecs.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
codecs.h codecs: mp_msg conversion 2013-12-21 20:50:12 +01:00
common.c Do not call strerror() 2014-11-26 21:21:56 +01:00
common.h Do not call strerror() 2014-11-26 21:21:56 +01:00
encode_lavc.c Silence some Coverity warnings 2014-11-21 09:59:58 +01:00
encode_lavc.h encode: make option struct local 2014-06-11 02:05:07 +02:00
encode.h encode: make option struct local 2014-06-11 02:05:07 +02:00
global.h stream: redo playback abort handling 2014-09-13 16:09:51 +02:00
msg_control.h command: make the "run" command work on Windows too 2015-01-01 20:37:49 +01:00
msg.c command: make the "run" command work on Windows too 2015-01-01 20:37:49 +01:00
msg.h Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
playlist.c player: deal with some corner cases with playlist navigation 2014-09-09 01:23:10 +02:00
playlist.h player: deal with some corner cases with playlist navigation 2014-09-09 01:23:10 +02:00
tags.c player: don't set tag strings to NULL 2015-01-12 14:33:56 +01:00
tags.h player: filter tags, add --display-tags option 2014-12-29 22:51:18 +01:00
version.c common: fix version variable declarations 2014-11-02 17:38:07 +01:00