diff options
| author | watson <gardendistrict0x0@outlook.com> | 2026-05-15 19:26:58 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-15 19:26:58 +1000 |
| commit | 4891365cb37159789ff097be21e243baffb44e28 (patch) | |
| tree | b3c3c45c00b32a25491e472b8253a3c1f78f0ad1 | |
| parent | c61e6113697b8d9a1cd004050cce4ac8795d9842 (diff) | |
| parent | 5480550edb8921c182cd87e284a28d8de44b4c1d (diff) | |
Merge pull request #6 from sk-imsk/patch-1
yo my braddah
| -rw-r--r-- | src/dbg.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -13,8 +13,14 @@ ff_result ff_set_debug_stream(ff_stream* stream, ff_ctx* ctx) ff_result ff_dprintf(ff_ctx* ctx, const char *msg) { - if (!ctx->ff_debug_enabled) return FF_RESULT_WARN_DEBUG_DISABLED; - if (!ctx->ff_debug_stream.write) return FF_RESULT_WARN_DEBUG_DISABLED; + if (!ctx->ff_debug_enabled){ + return FF_RESULT_WARN_DEBUG_DISABLED; + } + + if (!ctx->ff_debug_stream.write){ + return FF_RESULT_WARN_DEBUG_DISABLED; + } + ctx->ff_debug_stream.write(msg, ff_strlen(msg), ctx->ff_debug_stream.user); - return FF_RESULT_OK; + return FF_RESULT_OK; # result_ok means the result is ok } |
