From f1d161d55f458cf47e63d1ab9ddf08859019dd8a Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 Aug 2017 23:08:48 +0200 Subject: player: make --lavfi-complex changeable at runtime Tends to be somewhat glitchy if subtitles are enabled, and you enable and disable tracks. On error, this will disable --lavfi-complex, which will result in whatever behavior. --- player/lavfi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/lavfi.h') diff --git a/player/lavfi.h b/player/lavfi.h index 0f2ae7705f..ef19a14179 100644 --- a/player/lavfi.h +++ b/player/lavfi.h @@ -13,6 +13,7 @@ enum lavfi_direction { }; struct lavfi *lavfi_create(struct mp_log *log, char *graph_string); +const char *lavfi_get_graph(struct lavfi *c); void lavfi_destroy(struct lavfi *c); struct lavfi_pad *lavfi_find_pad(struct lavfi *c, char *name); enum lavfi_direction lavfi_pad_direction(struct lavfi_pad *pad); @@ -22,7 +23,8 @@ bool lavfi_get_connected(struct lavfi_pad *pad); bool lavfi_process(struct lavfi *c); bool lavfi_has_failed(struct lavfi *c); void lavfi_seek_reset(struct lavfi *c); -void lavfi_set_hwdec_devs(struct lavfi *c, struct mp_hwdec_devices *hwdevs); +void lavfi_pad_set_hwdec_devs(struct lavfi_pad *pad, + struct mp_hwdec_devices *hwdevs); int lavfi_request_frame_a(struct lavfi_pad *pad, struct mp_audio **out_aframe); int lavfi_request_frame_v(struct lavfi_pad *pad, struct mp_image **out_vframe); bool lavfi_needs_input(struct lavfi_pad *pad); -- cgit v1.2.3