@@ -16,9 +16,9 @@ void ccxr_demuxer_delete(struct ccx_demuxer **ctx);
16
16
17
17
static void ccx_demuxer_reset (struct ccx_demuxer * ctx )
18
18
{
19
- #ifndef DISABLE_RUST
20
- ccxr_demuxer_reset (ctx );
21
- #else
19
+ // #ifndef DISABLE_RUST
20
+ // ccxr_demuxer_reset(ctx);
21
+ // #else
22
22
ctx -> startbytes_pos = 0 ;
23
23
ctx -> startbytes_avail = 0 ;
24
24
ctx -> num_of_PIDs = 0 ;
@@ -30,37 +30,39 @@ static void ccx_demuxer_reset(struct ccx_demuxer *ctx)
30
30
}
31
31
memset (ctx -> stream_id_of_each_pid , 0 , (MAX_PSI_PID + 1 ) * sizeof (uint8_t ));
32
32
memset (ctx -> PIDs_programs , 0 , 65536 * sizeof (struct PMT_entry * ));
33
- #endif
33
+ // #endif
34
34
}
35
35
36
36
static void ccx_demuxer_close (struct ccx_demuxer * ctx )
37
37
{
38
- #ifndef DISABLE_RUST
39
- ccxr_demuxer_close (ctx );
40
- #else
38
+ // #ifndef DISABLE_RUST
39
+ // ccxr_demuxer_close(ctx);
40
+ // mprint("ctx.past = %lld\n", ctx->past);
41
+ // mprint("ctx.infd = %lld\n", ctx->infd);
42
+ // #else
41
43
ctx -> past = 0 ;
42
44
if (ctx -> infd != -1 && ccx_options .input_source == CCX_DS_FILE )
43
45
{
44
46
close (ctx -> infd );
45
47
ctx -> infd = -1 ;
46
48
activity_input_file_closed ();
47
49
}
48
- #endif
50
+ // #endif
49
51
}
50
52
51
53
static int ccx_demuxer_isopen (struct ccx_demuxer * ctx )
52
54
{
53
- #ifndef DISABLE_RUST
54
- return ccxr_demuxer_isopen (ctx );
55
- #else
55
+ // #ifndef DISABLE_RUST
56
+ // return ccxr_demuxer_isopen(ctx);
57
+ // #else
56
58
return ctx -> infd != -1 ;
57
- #endif
59
+ // #endif
58
60
}
59
61
static int ccx_demuxer_open (struct ccx_demuxer * ctx , const char * file )
60
62
{
61
- #ifndef DISABLE_RUST
62
- return ccxr_demuxer_open (ctx , file );
63
- #else
63
+ // #ifndef DISABLE_RUST
64
+ // return ccxr_demuxer_open(ctx, file);
65
+ // #else
64
66
ctx -> past = 0 ;
65
67
ctx -> min_global_timestamp = 0 ;
66
68
ctx -> global_timestamp_inited = 0 ;
@@ -218,13 +220,13 @@ static int ccx_demuxer_open(struct ccx_demuxer *ctx, const char *file)
218
220
}
219
221
220
222
return 0 ;
221
- #endif
223
+ // #endif
222
224
}
223
225
LLONG ccx_demuxer_get_file_size (struct ccx_demuxer * ctx )
224
226
{
225
- #ifndef DISABLE_RUST
226
- return ccxr_demuxer_get_file_size (ctx );
227
- #else
227
+ // #ifndef DISABLE_RUST
228
+ // return ccxr_demuxer_get_file_size(ctx);
229
+ // #else
228
230
LLONG ret = 0 ;
229
231
int in = ctx -> infd ;
230
232
LLONG current = LSEEK (in , 0 , SEEK_CUR );
@@ -237,23 +239,23 @@ LLONG ccx_demuxer_get_file_size(struct ccx_demuxer *ctx)
237
239
return -1 ;
238
240
239
241
return length ;
240
- #endif
242
+ // #endif
241
243
}
242
244
243
245
static int ccx_demuxer_get_stream_mode (struct ccx_demuxer * ctx )
244
246
{
245
- #ifndef DISABLE_RUST
246
- return ccxr_demuxer_get_stream_mode (ctx );
247
- #else
247
+ // #ifndef DISABLE_RUST
248
+ // return ccxr_demuxer_get_stream_mode(ctx);
249
+ // #else
248
250
return ctx -> stream_mode ;
249
- #endif
251
+ // #endif
250
252
}
251
253
252
254
static void ccx_demuxer_print_cfg (struct ccx_demuxer * ctx )
253
255
{
254
- #ifndef DISABLE_RUST
255
- ccxr_demuxer_print_cfg (ctx );
256
- #else
256
+ // #ifndef DISABLE_RUST
257
+ // ccxr_demuxer_print_cfg(ctx);
258
+ // #else
257
259
switch (ctx -> auto_stream )
258
260
{
259
261
case CCX_SM_ELEMENTARY_OR_NOT_FOUND :
@@ -298,14 +300,14 @@ static void ccx_demuxer_print_cfg(struct ccx_demuxer *ctx)
298
300
fatal (CCX_COMMON_EXIT_BUG_BUG , "BUG: Unknown stream mode. Please file a bug report on Github.\n" );
299
301
break ;
300
302
}
301
- #endif
303
+ // #endif
302
304
}
303
305
304
306
void ccx_demuxer_delete (struct ccx_demuxer * * ctx )
305
307
{
306
- #ifndef DISABLE_RUST
307
- ccxr_demuxer_delete (ctx );
308
- #else
308
+ // #ifndef DISABLE_RUST
309
+ // ccxr_demuxer_delete(ctx);
310
+ // #else
309
311
struct ccx_demuxer * lctx = * ctx ;
310
312
int i ;
311
313
dinit_cap (lctx );
@@ -328,7 +330,7 @@ void ccx_demuxer_delete(struct ccx_demuxer **ctx)
328
330
329
331
freep (& lctx -> filebuffer );
330
332
freep (ctx );
331
- #endif
333
+ // #endif
332
334
}
333
335
334
336
struct ccx_demuxer * init_demuxer (void * parent , struct demuxer_cfg * cfg )
0 commit comments