corrected pointer

This commit is contained in:
Anshul Maheshwari 2014-10-09 15:36:46 +05:30
parent 2125e58e1f
commit 0a2a00f883
5 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ include_directories ("${PROJECT_SOURCE_DIR}/lib_ccx")
include_directories ("${PROJECT_SOURCE_DIR}/gpacmp4/")
include_directories ("${PROJECT_SOURCE_DIR}/libccx_common/")
SET (CMAKE_C_FLAGS "-O3 -Wall -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64")
SET (CMAKE_C_FLAGS "-O0 -Wall -g -std=gnu99 -Wno-write-strings -D_FILE_OFFSET_BITS=64")
add_subdirectory (lib_ccx)
AUX_SOURCE_DIRECTORY(${PROJECT_SOURCE_DIR} SOURCEFILE)

View File

@ -1,6 +1,6 @@
cmake_policy(SET CMP0037 NEW)
SET (CMAKE_C_FLAGS "-O3 -Wall -std=gnu99")
SET (CMAKE_C_FLAGS "-O0 -Wall -g -std=gnu99")
AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/lib_ccx/" SOURCEFILE)
AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/gpacmp4/" SOURCEFILE)
#AUX_SOURCE_DIRECTORY("${PROJECT_SOURCE_DIR}/libpng/" SOURCEFILE)

View File

@ -87,7 +87,7 @@ struct ccx_s_options // Options from user parameters
int num_input_files; // How many?
enum ccx_stream_mode_enum auto_stream;
LLONG subs_delay; // ms to delay (or advance) subs
int *cc_to_stdout; // If this is set to 1, the stdout will be flushed when data was written to the screen during a process_608 call.
int cc_to_stdout; // If this is set to 1, the stdout will be flushed when data was written to the screen during a process_608 call.
// Output structures
struct ccx_s_write wbout1;
struct ccx_s_write wbout2;

View File

@ -1197,7 +1197,7 @@ int process608(const unsigned char *data, int length, ccx_decoder_608_context *c
context->current_visible_start_ms = get_visible_start();
}
}
if (wrote_to_screen && *context->cc_to_stdout)
if (wrote_to_screen && context->cc_to_stdout)
fflush (stdout);
} // for
return i;

View File

@ -52,7 +52,7 @@ typedef struct ccx_decoder_608_context
enum ccx_encoding_type encoding;
int *halt; // Can be used to halt the feeding of caption data. Set to 1 if screens_to_progress != -1 && screenfuls_counter >= screens_to_process
int *cc_to_stdout; // If this is set to 1, the stdout will be flushed when data was written to the screen during a process_608 call.
int cc_to_stdout; // If this is set to 1, the stdout will be flushed when data was written to the screen during a process_608 call.
} ccx_decoder_608_context;
extern unsigned char *enc_buffer;