@@ -16,9 +16,9 @@ void ccxr_demuxer_delete(struct ccx_demuxer **ctx);
1616
1717static void ccx_demuxer_reset (struct ccx_demuxer * ctx )
1818{
19- #ifndef DISABLE_RUST
20- ccxr_demuxer_reset (ctx );
21- #else
19+ // #ifndef DISABLE_RUST
20+ // ccxr_demuxer_reset(ctx);
21+ // #else
2222 ctx -> startbytes_pos = 0 ;
2323 ctx -> startbytes_avail = 0 ;
2424 ctx -> num_of_PIDs = 0 ;
@@ -30,37 +30,39 @@ static void ccx_demuxer_reset(struct ccx_demuxer *ctx)
3030 }
3131 memset (ctx -> stream_id_of_each_pid , 0 , (MAX_PSI_PID + 1 ) * sizeof (uint8_t ));
3232 memset (ctx -> PIDs_programs , 0 , 65536 * sizeof (struct PMT_entry * ));
33- #endif
33+ // #endif
3434}
3535
3636static void ccx_demuxer_close (struct ccx_demuxer * ctx )
3737{
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
4143 ctx -> past = 0 ;
4244 if (ctx -> infd != -1 && ccx_options .input_source == CCX_DS_FILE )
4345 {
4446 close (ctx -> infd );
4547 ctx -> infd = -1 ;
4648 activity_input_file_closed ();
4749 }
48- #endif
50+ // #endif
4951}
5052
5153static int ccx_demuxer_isopen (struct ccx_demuxer * ctx )
5254{
53- #ifndef DISABLE_RUST
54- return ccxr_demuxer_isopen (ctx );
55- #else
55+ // #ifndef DISABLE_RUST
56+ // return ccxr_demuxer_isopen(ctx);
57+ // #else
5658 return ctx -> infd != -1 ;
57- #endif
59+ // #endif
5860}
5961static int ccx_demuxer_open (struct ccx_demuxer * ctx , const char * file )
6062{
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
6466 ctx -> past = 0 ;
6567 ctx -> min_global_timestamp = 0 ;
6668 ctx -> global_timestamp_inited = 0 ;
@@ -218,13 +220,13 @@ static int ccx_demuxer_open(struct ccx_demuxer *ctx, const char *file)
218220 }
219221
220222 return 0 ;
221- #endif
223+ // #endif
222224}
223225LLONG ccx_demuxer_get_file_size (struct ccx_demuxer * ctx )
224226{
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
228230 LLONG ret = 0 ;
229231 int in = ctx -> infd ;
230232 LLONG current = LSEEK (in , 0 , SEEK_CUR );
@@ -237,23 +239,23 @@ LLONG ccx_demuxer_get_file_size(struct ccx_demuxer *ctx)
237239 return -1 ;
238240
239241 return length ;
240- #endif
242+ // #endif
241243}
242244
243245static int ccx_demuxer_get_stream_mode (struct ccx_demuxer * ctx )
244246{
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
248250 return ctx -> stream_mode ;
249- #endif
251+ // #endif
250252}
251253
252254static void ccx_demuxer_print_cfg (struct ccx_demuxer * ctx )
253255{
254- #ifndef DISABLE_RUST
255- ccxr_demuxer_print_cfg (ctx );
256- #else
256+ // #ifndef DISABLE_RUST
257+ // ccxr_demuxer_print_cfg(ctx);
258+ // #else
257259 switch (ctx -> auto_stream )
258260 {
259261 case CCX_SM_ELEMENTARY_OR_NOT_FOUND :
@@ -298,14 +300,14 @@ static void ccx_demuxer_print_cfg(struct ccx_demuxer *ctx)
298300 fatal (CCX_COMMON_EXIT_BUG_BUG , "BUG: Unknown stream mode. Please file a bug report on Github.\n" );
299301 break ;
300302 }
301- #endif
303+ // #endif
302304}
303305
304306void ccx_demuxer_delete (struct ccx_demuxer * * ctx )
305307{
306- #ifndef DISABLE_RUST
307- ccxr_demuxer_delete (ctx );
308- #else
308+ // #ifndef DISABLE_RUST
309+ // ccxr_demuxer_delete(ctx);
310+ // #else
309311 struct ccx_demuxer * lctx = * ctx ;
310312 int i ;
311313 dinit_cap (lctx );
@@ -328,7 +330,7 @@ void ccx_demuxer_delete(struct ccx_demuxer **ctx)
328330
329331 freep (& lctx -> filebuffer );
330332 freep (ctx );
331- #endif
333+ // #endif
332334}
333335
334336struct ccx_demuxer * init_demuxer (void * parent , struct demuxer_cfg * cfg )
0 commit comments