@@ -138,27 +138,10 @@ int api_start(struct ccx_s_options api_options)
138138#endif
139139 terminate_asap = 0 ;
140140
141- #ifdef ENABLE_SHARING
142- if (api_options .translate_enabled && ctx -> num_input_files > 1 )
143- {
144- mprint ("[share] WARNING: simultaneous translation of several input files is not supported yet\n" );
145- api_options .translate_enabled = 0 ;
146- api_options .sharing_enabled = 0 ;
147- }
148- if (api_options .translate_enabled )
149- {
150- mprint ("[share] launching translate service\n" );
151- ccx_share_launch_translator (api_options .translate_langs , api_options .translate_key );
152- }
153- #endif // ENABLE_SHARING
154141 ret = 0 ;
155142 while (switch_to_next_file (ctx , 0 ))
156143 {
157144 prepare_for_new_file (ctx );
158- #ifdef ENABLE_SHARING
159- if (api_options .sharing_enabled )
160- ccx_share_start (ctx -> basefilename );
161- #endif // ENABLE_SHARING
162145
163146 stream_mode = ctx -> demux_ctx -> get_stream_mode (ctx -> demux_ctx );
164147 // Disable sync check for raw formats - they have the right timeline.
@@ -310,14 +293,6 @@ int api_start(struct ccx_s_options api_options)
310293 dec_ctx -> timing -> fts_now = 0 ;
311294 dec_ctx -> timing -> fts_max = 0 ;
312295
313- #ifdef ENABLE_SHARING
314- if (api_options .sharing_enabled )
315- {
316- ccx_share_stream_done (ctx -> basefilename );
317- ccx_share_stop ();
318- }
319- #endif // ENABLE_SHARING
320-
321296 if (dec_ctx -> total_pulldownframes )
322297 mprint ("incl. pulldown frames: %s (%u frames at %.2ffps)\n" ,
323298 print_mstime_static ((LLONG )(dec_ctx -> total_pulldownframes * 1000 / current_fps )),
0 commit comments