diff options
author | Niklas Haas <git@haasn.dev> | 2021-11-03 15:15:20 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-11-03 15:15:20 +0100 |
commit | 8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419 (patch) | |
tree | 711a7721171eec477016a9d7fcfb892376b72371 /filters | |
parent | 701bd783cafa9fbe6dc5c34d8784193179a9290d (diff) | |
download | mpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.bz2 mpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.xz |
osdep: rename MP_UNREACHABLE
It was pointed out on IRC that the name is misleading, since the actual
semantics of the macro is to assert first.
Diffstat (limited to 'filters')
-rw-r--r-- | filters/f_lavfi.c | 4 | ||||
-rw-r--r-- | filters/f_utils.c | 2 | ||||
-rw-r--r-- | filters/filter.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/filters/f_lavfi.c b/filters/f_lavfi.c index b66bc8584b..1f715e6e34 100644 --- a/filters/f_lavfi.c +++ b/filters/f_lavfi.c @@ -394,7 +394,7 @@ static bool init_pads(struct lavfi *c) } else if (pad->type == MP_FRAME_VIDEO) { dst_filter = avfilter_get_by_name("buffersink"); } else { - MP_UNREACHABLE(); + MP_ASSERT_UNREACHABLE(); } if (!dst_filter) @@ -484,7 +484,7 @@ static bool init_pads(struct lavfi *c) params->frame_rate = av_d2q(fmt->nominal_fps, 1000000); filter_name = "buffer"; } else { - MP_UNREACHABLE(); + MP_ASSERT_UNREACHABLE(); } params->time_base = pad->timebase; diff --git a/filters/f_utils.c b/filters/f_utils.c index c166e2a4db..86ef106031 100644 --- a/filters/f_utils.c +++ b/filters/f_utils.c @@ -250,7 +250,7 @@ static void fixed_aframe_size_process(struct mp_filter *f) int in_samples = mp_aframe_get_size(p->in); int copy = MPMIN(in_samples, p->samples - p->out_written); if (!mp_aframe_copy_samples(p->out, p->out_written, p->in, 0, copy)) - MP_UNREACHABLE(); + MP_ASSERT_UNREACHABLE(); mp_aframe_skip_samples(p->in, copy); p->out_written += copy; } diff --git a/filters/filter.c b/filters/filter.c index 667925c43c..350047f975 100644 --- a/filters/filter.c +++ b/filters/filter.c @@ -372,7 +372,7 @@ static struct mp_pin *find_connected_end(struct mp_pin *p) return other; p = other->user_conn; } - MP_UNREACHABLE(); + MP_ASSERT_UNREACHABLE(); } // With p being part of a connection, create the pin_connection and set all |