equal
deleted
inserted
replaced
33 #include "std_log_result.h" |
33 #include "std_log_result.h" |
34 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
34 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
35 |
35 |
36 void create_xml(int result) |
36 void create_xml(int result) |
37 { |
37 { |
38 |
|
39 if(result) |
38 if(result) |
40 { |
|
41 assert_failed = 1; |
39 assert_failed = 1; |
42 } |
40 |
43 |
|
44 testResultXml(xmlfile); |
41 testResultXml(xmlfile); |
45 close_log_file(); |
42 close_log_file(); |
46 |
|
47 if(result) |
|
48 { |
|
49 exit (-1); |
|
50 } |
|
51 |
|
52 } |
43 } |
53 |
44 |
54 #ifndef GST_DISABLE_REGISTRY |
45 #ifndef GST_DISABLE_REGISTRY |
55 |
46 |
56 IMPORT_C GType gst_red_video_src_get_type (void); |
47 static GType gst_red_video_src_get_type (void); |
57 IMPORT_C GType gst_codec_src_get_type (void); |
48 static GType gst_codec_src_get_type (void); |
58 |
49 |
59 #define DEFINE_TEST(func) \ |
50 #define DEFINE_TEST(func) \ |
60 static void func (void); \ |
51 static void func (void); \ |
61 \ |
52 \ |
62 GST_START_TEST(func ## _decodebin1) \ |
53 GST_START_TEST(func ## _decodebin1) \ |
764 } |
755 } |
765 |
756 |
766 typedef GstPushSrc GstRedVideoSrc; |
757 typedef GstPushSrc GstRedVideoSrc; |
767 typedef GstPushSrcClass GstRedVideoSrcClass; |
758 typedef GstPushSrcClass GstRedVideoSrcClass; |
768 |
759 |
769 |
|
770 GST_BOILERPLATE_FULL (GstRedVideoSrc, gst_red_video_src, GstPushSrc, |
760 GST_BOILERPLATE_FULL (GstRedVideoSrc, gst_red_video_src, GstPushSrc, |
771 GST_TYPE_PUSH_SRC, gst_red_video_src_init_type); |
761 GST_TYPE_PUSH_SRC, gst_red_video_src_init_type); |
772 |
762 |
773 static void |
763 static void |
774 gst_red_video_src_base_init (gpointer klass) |
764 gst_red_video_src_base_init (gpointer klass) |
775 { |
765 { |
776 static const GstElementDetails details = |
766 static const GstElementDetails details = |
876 #undef parent_class |
866 #undef parent_class |
877 #define parent_class codec_src_parent_class |
867 #define parent_class codec_src_parent_class |
878 |
868 |
879 typedef GstPushSrc GstCodecSrc; |
869 typedef GstPushSrc GstCodecSrc; |
880 typedef GstPushSrcClass GstCodecSrcClass; |
870 typedef GstPushSrcClass GstCodecSrcClass; |
881 |
|
882 |
871 |
883 GST_BOILERPLATE_FULL (GstCodecSrc, gst_codec_src, GstPushSrc, |
872 GST_BOILERPLATE_FULL (GstCodecSrc, gst_codec_src, GstPushSrc, |
884 GST_TYPE_PUSH_SRC, gst_codec_src_init_type); |
873 GST_TYPE_PUSH_SRC, gst_codec_src_init_type); |
885 |
874 |
886 static void |
875 static void |