mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-09 09:39:27 +00:00
Fixes for new caps. A few tests disabled.
Original commit message from CVS: Fixes for new caps. A few tests disabled.
This commit is contained in:
parent
35dd041316
commit
26da835878
|
@ -3,30 +3,30 @@
|
|||
/* these caps all have a non empty intersection */
|
||||
GstStaticCaps2 sinkcaps = GST_STATIC_CAPS(
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1,2}"
|
||||
"mpegtype:int=(1,2)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 mp1parsecaps = GST_STATIC_CAPS(
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1}"
|
||||
"mpegtype:int=(1)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUY2\"), "
|
||||
"width:int=[16,4096], "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps2 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUY2\"), "
|
||||
"height:int=[16,256]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
@ -34,13 +34,13 @@ GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS(
|
|||
/* these caps aren't used yet */
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUYV\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUYV\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUYV\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUYV\", \"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
#endif
|
||||
|
|
|
@ -33,19 +33,19 @@ GstStaticCaps2 rawcaps2 = GST_STATIC_CAPS (
|
|||
|
||||
GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\", \"YV12\" }, "
|
||||
"fourcc:fourcc=(\"YUY2\", \"YV12\" ), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\",\"YV12\",\"YUYV\" }, "
|
||||
"fourcc:fourcc=(\"YUY2\",\"YV12\",\"YUYV\" ), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps5 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUYV\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUYV\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
GstStaticCaps2 caps1 = GST_STATIC_CAPS (
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1,2}"
|
||||
"mpegtype:int=(1,2)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps2 = GST_STATIC_CAPS (
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1}"
|
||||
"mpegtype:int=(1)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps3 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUY2\"), "
|
||||
"width:int=[16,4096], "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
@ -26,19 +26,19 @@ GstStaticCaps2 caps4 = GST_STATIC_CAPS (
|
|||
|
||||
GstStaticCaps2 caps5 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps6 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUYV\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUYV\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps7 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YVYV\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YVYV\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
@ -118,6 +118,7 @@ test_string_fail (gchar *str)
|
|||
TEST_START;
|
||||
g_print ("%3d, INFO : checking %s for failure\n", test, str);
|
||||
caps = gst_caps2_from_string (str);
|
||||
g_print("got %p\n", caps);
|
||||
TEST_END (caps == NULL);
|
||||
}
|
||||
int
|
||||
|
@ -167,35 +168,35 @@ bla:
|
|||
test_string ("audio/raw ,test : boolean=no");
|
||||
|
||||
/* unfixed props entries */
|
||||
test_string ("audio/raw, test= [ 1, 2 ]");
|
||||
test_string ("audio/raw, test= [ 1.0 , 2]");
|
||||
test_string ("audio/raw, test = [1, 2.5 ]");
|
||||
test_string ("audio/raw, test= [1.3, 2.1 ]");
|
||||
test_string_fail ("audio/raw, test= [ 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test= [ 1.0 , 2]");
|
||||
test_string_fail ("audio/raw, test = [1, 2.5 ]");
|
||||
test_string_fail ("audio/raw, test= [1.3, 2.1 ]");
|
||||
test_string ("audio/raw, test :int = [1,2]");
|
||||
test_string ("audio/raw, test :float = [1,2]");
|
||||
test_string ("audio/raw, test= [int = 1, 2 ]");
|
||||
test_string ("audio/raw, test:f= [ float=1.0 , 2]");
|
||||
test_string ("audio/raw, test = [int =1, float = 2.5 ]");
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ]");
|
||||
test_string ("audio/raw, test :i= [int=1,2]");
|
||||
test_string ("audio/raw, test:l= (int=1,2)");
|
||||
test_string ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10)");
|
||||
test_string ("audio/raw, test= (1.0)");
|
||||
test_string ("audio/raw, test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string ("audio/raw, test:l= (int=1,2)");
|
||||
test_string ("audio/raw, test:list= (int=1,2)");
|
||||
test_string ("audio/raw, test :double = [1,2]");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test:f= [ float=1.0 , 2]");
|
||||
test_string_fail ("audio/raw, test = [int =1, float = 2.5 ]");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ]");
|
||||
test_string_fail ("audio/raw, test :i= [int=1,2]");
|
||||
test_string_fail ("audio/raw, test:l= (int=1,2)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10)");
|
||||
test_string_fail ("audio/raw, test= (1.0)");
|
||||
test_string_fail ("audio/raw, test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string_fail ("audio/raw, test:l= (int=1,2)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1,2)");
|
||||
|
||||
/* prop concatenations */
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ], test2= [ 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ], test2= [ 1, 2 ]");
|
||||
test_string ("audio/raw , test:fourcc= RGB,test2:int=1");
|
||||
test_string ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \"");
|
||||
test_string ("audio/raw, test= [1.3, 2.1 ] , test2= (1.0)");
|
||||
test_string ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10), test2 = [1, 2.5 ] , test3: string=1 ,test4:i=1");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \"");
|
||||
test_string_fail ("audio/raw, test= [1.3, 2.1 ] , test2= (1.0)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10), test2 = [1, 2.5 ] , test3: string=1 ,test4:i=1");
|
||||
|
||||
/* caps concatenations */
|
||||
test_string ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \";\"audio/raw\"");
|
||||
test_string ("audio/raw, test :float = [1,2] ; audio/raw, test:fourcc =1 ;'audio/raw', test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ];audio/raw, test :i= [int=1,2]");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \";\"audio/raw\"");
|
||||
test_string_fail ("audio/raw, test :float = [1,2] ; audio/raw, test:fourcc =1 ;'audio/raw', test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ];audio/raw, test :i= [int=1,2]");
|
||||
|
||||
|
||||
/* mimes */
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <gst/gst.h>
|
||||
|
||||
GST_DEBUG_CATEGORY (cat);
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <gst/gst.h>
|
||||
|
||||
#define THREAD_COUNT 5
|
||||
|
|
|
@ -16,5 +16,5 @@ libtestplugin2_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|||
|
||||
linked_LIBS = libtestplugin.la libtestplugin2.la
|
||||
|
||||
static_SOURCES = static.c testplugin_s.c testplugin2_s.c
|
||||
static_SOURCES = static.c
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
@ -12,7 +10,7 @@ plugin_init (GstPlugin *plugin)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin",
|
||||
|
@ -31,7 +29,7 @@ plugin2_init (GstPlugin *plugin)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin2",
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#ifdef GST_PLUGIN_STATIC
|
||||
#error ack
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
|
@ -23,3 +27,4 @@ GST_PLUGIN_DEFINE (
|
|||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
||||
|
|
|
@ -1,3 +1,26 @@
|
|||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#include "testplugin2.c"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin2",
|
||||
"another testplugin for testing",
|
||||
plugin_init,
|
||||
VERSION,
|
||||
GST_LICENSE,
|
||||
GST_COPYRIGHT,
|
||||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
||||
|
|
|
@ -1,3 +1,25 @@
|
|||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#include "testplugin.c"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin",
|
||||
"a plugin for testing",
|
||||
plugin_init,
|
||||
VERSION,
|
||||
GST_LICENSE,
|
||||
GST_COPYRIGHT,
|
||||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
|
|
@ -3,30 +3,30 @@
|
|||
/* these caps all have a non empty intersection */
|
||||
GstStaticCaps2 sinkcaps = GST_STATIC_CAPS(
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1,2}"
|
||||
"mpegtype:int=(1,2)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 mp1parsecaps = GST_STATIC_CAPS(
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1}"
|
||||
"mpegtype:int=(1)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUY2\"), "
|
||||
"width:int=[16,4096], "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps2 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUY2\"), "
|
||||
"height:int=[16,256]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
@ -34,13 +34,13 @@ GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS(
|
|||
/* these caps aren't used yet */
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\", \"YUYV\"}, "
|
||||
"fourcc:fourcc=(\"YV12\", \"YUYV\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS(
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUYV\", \"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUYV\", \"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
#endif
|
||||
|
|
|
@ -33,19 +33,19 @@ GstStaticCaps2 rawcaps2 = GST_STATIC_CAPS (
|
|||
|
||||
GstStaticCaps2 rawcaps3 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\", \"YV12\" }, "
|
||||
"fourcc:fourcc=(\"YUY2\", \"YV12\" ), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps4 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUY2\",\"YV12\",\"YUYV\" }, "
|
||||
"fourcc:fourcc=(\"YUY2\",\"YV12\",\"YUYV\" ), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 rawcaps5 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YUYV\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YUYV\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
GstStaticCaps2 caps1 = GST_STATIC_CAPS (
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1,2}"
|
||||
"mpegtype:int=(1,2)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps2 = GST_STATIC_CAPS (
|
||||
"video/mpeg, "
|
||||
"mpegtype:int={1}"
|
||||
"mpegtype:int=(1)"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps3 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUY2\"), "
|
||||
"width:int=[16,4096], "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
@ -26,19 +26,19 @@ GstStaticCaps2 caps4 = GST_STATIC_CAPS (
|
|||
|
||||
GstStaticCaps2 caps5 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps6 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YV12\",\"YUYV\"}, "
|
||||
"fourcc:fourcc=(\"YV12\",\"YUYV\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
GstStaticCaps2 caps7 = GST_STATIC_CAPS (
|
||||
"video/raw, "
|
||||
"fourcc:fourcc={\"YVYV\",\"YUY2\"}, "
|
||||
"fourcc:fourcc=(\"YVYV\",\"YUY2\"), "
|
||||
"height:int=[16,4096]"
|
||||
);
|
||||
|
||||
|
@ -118,6 +118,7 @@ test_string_fail (gchar *str)
|
|||
TEST_START;
|
||||
g_print ("%3d, INFO : checking %s for failure\n", test, str);
|
||||
caps = gst_caps2_from_string (str);
|
||||
g_print("got %p\n", caps);
|
||||
TEST_END (caps == NULL);
|
||||
}
|
||||
int
|
||||
|
@ -167,35 +168,35 @@ bla:
|
|||
test_string ("audio/raw ,test : boolean=no");
|
||||
|
||||
/* unfixed props entries */
|
||||
test_string ("audio/raw, test= [ 1, 2 ]");
|
||||
test_string ("audio/raw, test= [ 1.0 , 2]");
|
||||
test_string ("audio/raw, test = [1, 2.5 ]");
|
||||
test_string ("audio/raw, test= [1.3, 2.1 ]");
|
||||
test_string_fail ("audio/raw, test= [ 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test= [ 1.0 , 2]");
|
||||
test_string_fail ("audio/raw, test = [1, 2.5 ]");
|
||||
test_string_fail ("audio/raw, test= [1.3, 2.1 ]");
|
||||
test_string ("audio/raw, test :int = [1,2]");
|
||||
test_string ("audio/raw, test :float = [1,2]");
|
||||
test_string ("audio/raw, test= [int = 1, 2 ]");
|
||||
test_string ("audio/raw, test:f= [ float=1.0 , 2]");
|
||||
test_string ("audio/raw, test = [int =1, float = 2.5 ]");
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ]");
|
||||
test_string ("audio/raw, test :i= [int=1,2]");
|
||||
test_string ("audio/raw, test:l= (int=1,2)");
|
||||
test_string ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10)");
|
||||
test_string ("audio/raw, test= (1.0)");
|
||||
test_string ("audio/raw, test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string ("audio/raw, test:l= (int=1,2)");
|
||||
test_string ("audio/raw, test:list= (int=1,2)");
|
||||
test_string ("audio/raw, test :double = [1,2]");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test:f= [ float=1.0 , 2]");
|
||||
test_string_fail ("audio/raw, test = [int =1, float = 2.5 ]");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ]");
|
||||
test_string_fail ("audio/raw, test :i= [int=1,2]");
|
||||
test_string_fail ("audio/raw, test:l= (int=1,2)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10)");
|
||||
test_string_fail ("audio/raw, test= (1.0)");
|
||||
test_string_fail ("audio/raw, test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string_fail ("audio/raw, test:l= (int=1,2)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1,2)");
|
||||
|
||||
/* prop concatenations */
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ], test2= [ 1, 2 ]");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ], test2= [ 1, 2 ]");
|
||||
test_string ("audio/raw , test:fourcc= RGB,test2:int=1");
|
||||
test_string ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \"");
|
||||
test_string ("audio/raw, test= [1.3, 2.1 ] , test2= (1.0)");
|
||||
test_string ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10), test2 = [1, 2.5 ] , test3: string=1 ,test4:i=1");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \"");
|
||||
test_string_fail ("audio/raw, test= [1.3, 2.1 ] , test2= (1.0)");
|
||||
test_string_fail ("audio/raw, test:list= (int=1 ,2,3 ,int= 4 , 5 ,6 , int =7 ,8 , int = 9, 10), test2 = [1, 2.5 ] , test3: string=1 ,test4:i=1");
|
||||
|
||||
/* caps concatenations */
|
||||
test_string ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \";\"audio/raw\"");
|
||||
test_string ("audio/raw, test :float = [1,2] ; audio/raw, test:fourcc =1 ;'audio/raw', test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string ("audio/raw, test:float= [1.3, float=2.1 ];audio/raw, test :i= [int=1,2]");
|
||||
test_string_fail ("audio/raw, test= [int = 1, 2 ] ,test2 :fourcc= \"RGB \";\"audio/raw\"");
|
||||
test_string_fail ("audio/raw, test :float = [1,2] ; audio/raw, test:fourcc =1 ;'audio/raw', test:list= (\"hi\", 'i dig ya', dude)");
|
||||
test_string_fail ("audio/raw, test:float= [1.3, float=2.1 ];audio/raw, test :i= [int=1,2]");
|
||||
|
||||
|
||||
/* mimes */
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <gst/gst.h>
|
||||
|
||||
GST_DEBUG_CATEGORY (cat);
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include <gst/gst.h>
|
||||
|
||||
#define THREAD_COUNT 5
|
||||
|
|
|
@ -16,5 +16,5 @@ libtestplugin2_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|||
|
||||
linked_LIBS = libtestplugin.la libtestplugin2.la
|
||||
|
||||
static_SOURCES = static.c testplugin_s.c testplugin2_s.c
|
||||
static_SOURCES = static.c
|
||||
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
@ -12,7 +10,7 @@ plugin_init (GstPlugin *plugin)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin",
|
||||
|
@ -31,7 +29,7 @@ plugin2_init (GstPlugin *plugin)
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin2",
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#ifdef GST_PLUGIN_STATIC
|
||||
#error ack
|
||||
#endif
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
|
@ -23,3 +27,4 @@ GST_PLUGIN_DEFINE (
|
|||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
||||
|
|
|
@ -1,3 +1,26 @@
|
|||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#include "testplugin2.c"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE_STATIC (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin2",
|
||||
"another testplugin for testing",
|
||||
plugin_init,
|
||||
VERSION,
|
||||
GST_LICENSE,
|
||||
GST_COPYRIGHT,
|
||||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
||||
|
|
|
@ -1,3 +1,25 @@
|
|||
#define GST_PLUGIN_STATIC
|
||||
|
||||
#include "testplugin.c"
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
static gboolean
|
||||
plugin_init (GstPlugin *plugin)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GST_PLUGIN_DEFINE (
|
||||
GST_VERSION_MAJOR,
|
||||
GST_VERSION_MINOR,
|
||||
"testplugin",
|
||||
"a plugin for testing",
|
||||
plugin_init,
|
||||
VERSION,
|
||||
GST_LICENSE,
|
||||
GST_COPYRIGHT,
|
||||
GST_PACKAGE,
|
||||
GST_ORIGIN
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue