gst_plugins_base/tsrc/check/elements/subparse/src/subparse.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    42 
    42 
    43 #if EMULATOR
    43 #if EMULATOR
    44 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    44 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    45 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    45 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    46 #else 
    46 #else 
    47 IMPORT_C extern GList *buffers;
    47 extern GList *buffers;
    48 #endif
    48 #endif
    49 
    49 
    50 void create_xml(int result)
    50 void create_xml(int result)
    51 {
    51 {
    52 
       
    53     if(result)
    52     if(result)
    54     {
       
    55         assert_failed = 1;
    53         assert_failed = 1;
    56     } 
    54     
    57 
       
    58     testResultXml(xmlfile);
    55     testResultXml(xmlfile);
    59     close_log_file();
    56     close_log_file();
    60 
       
    61     if(result)
       
    62     {
       
    63         exit (-1);
       
    64     }    
       
    65 
       
    66 }
    57 }
    67 
    58 
    68 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
    59 static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
    69     GST_PAD_SINK,
    60     GST_PAD_SINK,
    70     GST_PAD_ALWAYS,
    61     GST_PAD_ALWAYS,