gstreamer_core/tsrc/examples/metadata/src/read-metadata.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    26 #ifdef HAVE_CONFIG_H
    26 #ifdef HAVE_CONFIG_H
    27 #  include "config.h"
    27 #  include "config.h"
    28 #endif
    28 #endif
    29 
    29 
    30 
    30 
    31 
    31 #include <gst/gst_global.h>
    32 #include <string.h>
    32 #include <string.h>
    33 #include <stdlib.h>
    33 #include <stdlib.h>
    34 #include <locale.h>
    34 #include <locale.h>
    35 #include <gst/gst.h>
    35 #include <gst/gst.h>
    36 #include <gst/gst_global.h>
       
    37 
    36 
    38 static char *filename = NULL;
    37 static char *filename = NULL;
    39 static GstElement *pipeline = NULL;
    38 static GstElement *pipeline = NULL;
    40 static GstElement *source = NULL;
    39 static GstElement *source = NULL;
    41 
    40 
    47 #define LOG_FILENAME_LINE __FILE__, __LINE__
    46 #define LOG_FILENAME_LINE __FILE__, __LINE__
    48 
    47 
    49 
    48 
    50 void create_xml(int result)
    49 void create_xml(int result)
    51 {
    50 {
    52 
       
    53     if(result)
    51     if(result)
    54     {
       
    55         assert_failed = 1;
    52         assert_failed = 1;
    56     } 
    53     
    57 
       
    58     testResultXml(xmlfile);
    54     testResultXml(xmlfile);
    59     close_log_file();
    55     close_log_file();
    60 
    56 }
    61     if(result)
       
    62     {
       
    63         exit (-1);
       
    64     }    
       
    65 
       
    66 }
       
    67 
       
    68 static gboolean
    57 static gboolean
    69 message_loop (GstElement * element, GstTagList ** tags)
    58 message_loop (GstElement * element, GstTagList ** tags)
    70 {
    59 {
    71   GstBus *bus;
    60   GstBus *bus;
    72   gboolean done = FALSE;
    61   gboolean done = FALSE;