Skip to content

Commit 2f14d28

Browse files
committed
hide main hardsubx function on the C side behinf ifdef macros
1 parent d44579a commit 2f14d28

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib_ccx/hardsubx.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <libavutil/imgutils.h>
1111
#include <libswscale/swscale.h>
1212

13+
#ifdef DISABLE_RUST
1314
int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_normal)
1415
{
1516
// Get the required media attributes and initialize structures
@@ -119,7 +120,7 @@ int hardsubx_process_data(struct lib_hardsubx_ctx *ctx, struct lib_ccx_ctx *ctx_
119120
avcodec_close(ctx->codec_ctx);
120121
avformat_close_input(&ctx->format_ctx);
121122
}
122-
123+
#endif
123124
void _hardsubx_params_dump(struct ccx_s_options *options, struct lib_hardsubx_ctx *ctx)
124125
{
125126
// Print the relevant passed parameters onto the screen
@@ -317,6 +318,7 @@ void _dinit_hardsubx(struct lib_hardsubx_ctx **ctx)
317318
freep(ctx);
318319
}
319320

321+
#ifdef DISABLE_RUST
320322
void hardsubx(struct ccx_s_options *options, struct lib_ccx_ctx *ctx_normal)
321323
{
322324
// This is similar to the 'main' function in ccextractor.c, but for hard subs
@@ -344,5 +346,5 @@ void hardsubx(struct ccx_s_options *options, struct lib_ccx_ctx *ctx_normal)
344346
// Free all allocated memory for the data structures
345347
_dinit_hardsubx(&ctx);
346348
}
347-
349+
#endif
348350
#endif

0 commit comments

Comments
 (0)