Showing the changes to misc/node.c (1 of 16 files). Show all
Unified · Split
| @@ -1,7 +1,10 @@ | |||
| 1 | #include "common/common.h" | ||
| 2 | |||
| 3 | #include "node.h" | 1 | #include "node.h" |
| 4 | 2 | ||
| 3 | #include <libmpv/client.h> | ||
| 4 | |||
| 5 | #include "common/common.h" | ||
| 6 | #include "bstr.h" | ||
| 7 | |||
| 5 | // Init a node with the given format. If parent is not NULL, it is set as | 8 | // Init a node with the given format. If parent is not NULL, it is set as |
| 6 | // parent allocation according to m_option_type_node rules (which means | 9 | // parent allocation according to m_option_type_node rules (which means |
| 7 | // the mpv_node_list allocs are used for chaining the TA allocations). | 10 | // the mpv_node_list allocs are used for chaining the TA allocations). |
| @@ -117,7 +120,7 @@ mpv_node *node_map_bget(mpv_node *src, struct bstr key) · 109 unmodified lines | |||
| 117 | 120 | ||
| 118 | // Note: for MPV_FORMAT_NODE_MAP, this (incorrectly) takes the order into | 121 | // Note: for MPV_FORMAT_NODE_MAP, this (incorrectly) takes the order into |
| 119 | // account, instead of treating it as set. | 122 | // account, instead of treating it as set. |
| 120 | bool equal_mpv_value(const void *a, const void *b, mpv_format format) | 123 | bool equal_mpv_value(const void *a, const void *b, int format) |
| 121 | { | 124 | { |
| 122 | switch (format) { | 125 | switch (format) { |
| 123 | case MPV_FORMAT_NONE: | 126 | case MPV_FORMAT_NONE: |