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 |
|
13 if(result) |
12 if(result) |
14 { |
|
15 assert_failed = 1; |
13 assert_failed = 1; |
16 } |
14 |
17 |
|
18 testResultXml(xmlfile); |
15 testResultXml(xmlfile); |
19 close_log_file(); |
16 close_log_file(); |
20 |
|
21 if(result) |
|
22 { |
|
23 exit (-1); |
|
24 } |
|
25 |
|
26 } |
17 } |
27 |
18 |
28 #include <gst/gst.h> |
19 #include <gst/gst.h> |
29 |
20 |
30 /*** block b from ../../../docs/manual/highlevel-components.xml ***/ |
21 /*** block b from ../../../docs/manual/highlevel-components.xml ***/ |
137 |
128 |
138 /* create audio output */ |
129 /* create audio output */ |
139 audio = gst_bin_new ("audiobin"); |
130 audio = gst_bin_new ("audiobin"); |
140 conv = gst_element_factory_make ("audioconvert", "aconv"); |
131 conv = gst_element_factory_make ("audioconvert", "aconv"); |
141 audiopad = gst_element_get_pad (conv, "sink"); |
132 audiopad = gst_element_get_pad (conv, "sink"); |
142 sink = gst_element_factory_make ("devsoundsink", "sink"); |
133 sink = gst_element_factory_make ("alsasink", "sink"); |
143 gst_bin_add_many (GST_BIN (audio), conv, sink, NULL); |
134 gst_bin_add_many (GST_BIN (audio), conv, sink, NULL); |
144 gst_element_link (conv, sink); |
135 gst_element_link (conv, sink); |
145 gst_element_add_pad (audio, |
136 gst_element_add_pad (audio, |
146 gst_ghost_pad_new ("sink", audiopad)); |
137 gst_ghost_pad_new ("sink", audiopad)); |
147 gst_object_unref (audiopad); |
138 gst_object_unref (audiopad); |