gstreamer_core/tsrc/examples/manual/manual_decodebin/src/manual_decodebin.c
changeset 8 4a7fac7dd34a
parent 2 5505e8908944
child 30 7e817e7e631c
equal deleted inserted replaced
7:71e347f905f2 8:4a7fac7dd34a
     7 #include "std_log_result.h" 
     7 #include "std_log_result.h" 
     8 #define LOG_FILENAME_LINE __FILE__, __LINE__
     8 #define LOG_FILENAME_LINE __FILE__, __LINE__
     9 
     9 
    10 void create_xml(int result)
    10 void create_xml(int result)
    11 {
    11 {
       
    12 
    12     if(result)
    13     if(result)
       
    14     {
    13         assert_failed = 1;
    15         assert_failed = 1;
    14     
    16     } 
       
    17 
    15     testResultXml(xmlfile);
    18     testResultXml(xmlfile);
    16     close_log_file();
    19     close_log_file();
       
    20 
       
    21     if(result)
       
    22     {
       
    23         exit (-1);
       
    24     }    
       
    25 
    17 }
    26 }
    18 
    27 
    19 #include <gst/gst.h>
    28 #include <gst/gst.h>
    20 
    29 
    21 /*** block b  from ../../../docs/manual/highlevel-components.xml ***/
    30 /*** block b  from ../../../docs/manual/highlevel-components.xml ***/
   128 
   137 
   129   /* create audio output */
   138   /* create audio output */
   130   audio = gst_bin_new ("audiobin");
   139   audio = gst_bin_new ("audiobin");
   131   conv = gst_element_factory_make ("audioconvert", "aconv");
   140   conv = gst_element_factory_make ("audioconvert", "aconv");
   132   audiopad = gst_element_get_pad (conv, "sink");
   141   audiopad = gst_element_get_pad (conv, "sink");
   133   sink = gst_element_factory_make ("alsasink", "sink");
   142   sink = gst_element_factory_make ("devsoundsink", "sink");
   134   gst_bin_add_many (GST_BIN (audio), conv, sink, NULL);
   143   gst_bin_add_many (GST_BIN (audio), conv, sink, NULL);
   135   gst_element_link (conv, sink);
   144   gst_element_link (conv, sink);
   136   gst_element_add_pad (audio,
   145   gst_element_add_pad (audio,
   137       gst_ghost_pad_new ("sink", audiopad));
   146       gst_ghost_pad_new ("sink", audiopad));
   138   gst_object_unref (audiopad);
   147   gst_object_unref (audiopad);