gstreamer_core/tsrc/check/elements/gstqueue/src/gstqueue.c
changeset 9 2a0f36a70380
parent 8 4a7fac7dd34a
child 24 bc39b352897e
equal deleted inserted replaced
8:4a7fac7dd34a 9:2a0f36a70380
    53 
    53 
    54 #if EMULATOR
    54 #if EMULATOR
    55 static GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    55 static GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    56 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    56 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    57 #else 
    57 #else 
    58 extern GList *buffers;
    58 IMPORT_C extern GList *buffers;
    59 #endif
    59 #endif
    60 
    60 
    61 
    61 
    62 #if EMULATOR
    62 #if EMULATOR
    63 GET_GLOBAL_VAR_FROM_TLS(check_mutex,gstcheck,GMutex *)
    63 GET_GLOBAL_VAR_FROM_TLS(check_mutex,gstcheck,GMutex *)
    64 #define check_mutex (*GET_GSTREAMER_WSD_VAR_NAME(check_mutex,gstcheck,g)())
    64 #define check_mutex (*GET_GSTREAMER_WSD_VAR_NAME(check_mutex,gstcheck,g)())
    65 #else 
    65 #else 
    66 extern GMutex *check_mutex;
    66 IMPORT_C extern GMutex *check_mutex;
    67 #endif
    67 #endif
    68 
    68 
    69 
    69 
    70 #if EMULATOR
    70 #if EMULATOR
    71 GET_GLOBAL_VAR_FROM_TLS(check_cond,gstcheck,GCond *)
    71 GET_GLOBAL_VAR_FROM_TLS(check_cond,gstcheck,GCond *)
    72 #define check_cond (*GET_GSTREAMER_WSD_VAR_NAME(check_cond,gstcheck,g)())
    72 #define check_cond (*GET_GSTREAMER_WSD_VAR_NAME(check_cond,gstcheck,g)())
    73 #else 
    73 #else 
    74 extern GCond *check_cond;
    74 IMPORT_C extern GCond *check_cond;
    75 #endif
    75 #endif
    76 
    76 
    77 //GList *buffers = NULL;
    77 //GList *buffers = NULL;
    78 static gint overrun_count = 0;
    78 static gint overrun_count = 0;
    79 static gint underrun_count = 0;
    79 static gint underrun_count = 0;