Revision 21005,
840 bytes
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21004,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | #include <gst/gst.h> |
---|
2 | |
---|
3 | /* these caps all have a non empty intersection */ |
---|
4 | GstStaticCaps sinkcaps = GST_STATIC_CAPS ("video/mpeg, " |
---|
5 | "mpegtype:int=1, " |
---|
6 | "foo1:int=[20,40], " "foo2:int=[20,40], " "foo3:int=[10,20]"); |
---|
7 | |
---|
8 | GstStaticCaps mp1parsecaps = GST_STATIC_CAPS ("video/mpeg, " |
---|
9 | "mpegtype:int=1, " "foo1:int=30, " "foo2:int=[20,30], " "foo3:int=[20,30]"); |
---|
10 | |
---|
11 | int |
---|
12 | main (int argc, char *argv[]) |
---|
13 | { |
---|
14 | xmlDocPtr doc; |
---|
15 | xmlNodePtr parent; |
---|
16 | GstCaps *caps; |
---|
17 | |
---|
18 | gst_init (&argc, &argv); |
---|
19 | |
---|
20 | doc = xmlNewDoc ("1.0"); |
---|
21 | doc->xmlRootNode = xmlNewDocNode (doc, NULL, "Capabilities", NULL); |
---|
22 | |
---|
23 | caps = gst_caps_union (gst_static_caps_get (&sinkcaps), |
---|
24 | gst_static_caps_get (&mp1parsecaps)); |
---|
25 | parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities1", NULL); |
---|
26 | gst_caps_save_thyself (caps, parent); |
---|
27 | |
---|
28 | xmlDocDump (stdout, doc); |
---|
29 | |
---|
30 | return 0; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.