mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
add 'toolsdir' to the pc files add our first plugin test, which involves simply running gst-compprep, which in the co...
Original commit message from CVS: * add 'toolsdir' to the pc files * add our first plugin test, which involves simply running gst-compprep, which in the course of creating the completion registry instantiates every plugin. gst-register is run first.
This commit is contained in:
parent
3869c72e63
commit
991e42bc4b
3 changed files with 18 additions and 6 deletions
|
@ -1,7 +1,9 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
# the standard variables don't make sense for an uninstalled copy
|
||||
prefix=
|
||||
exec_prefix=
|
||||
libdir=
|
||||
includedir=
|
||||
toolsdir=${pcfiledir}/tools
|
||||
|
||||
Name: GStreamer Uninstalled
|
||||
Description: Streaming-media framework, Not Installed
|
||||
|
|
|
@ -2,6 +2,7 @@ prefix=@prefix@
|
|||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
toolsdir=${exec_prefix}/bin
|
||||
|
||||
Name: GStreamer
|
||||
Description: Streaming-media framework
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <gst/gstconfig.h>
|
||||
|
||||
|
@ -58,7 +59,7 @@ int main(int argc,char *argv[]) {
|
|||
|
||||
gchar *prev_word = argv[3];
|
||||
gchar *partial_word = argv[2];
|
||||
int partial_len = strlen(partial_word);
|
||||
int partial_len;
|
||||
GList *elements;
|
||||
GSList *pads;
|
||||
int num_pads;
|
||||
|
@ -66,9 +67,17 @@ int main(int argc,char *argv[]) {
|
|||
gchar *word;
|
||||
GSList *words = NULL;
|
||||
|
||||
struct stat stat_buf;
|
||||
|
||||
partial_len = strlen(partial_word);
|
||||
|
||||
/***** Loading the completion information from the registry *****/
|
||||
|
||||
if (stat (GST_CONFIG_DIR"/compreg.xml", &stat_buf) == 0) {
|
||||
doc = xmlParseFile (GST_CONFIG_DIR"/compreg.xml");
|
||||
} else {
|
||||
exit (1);
|
||||
}
|
||||
rootnode = doc->xmlRootNode;
|
||||
|
||||
elementnode = rootnode->xmlChildrenNode;
|
||||
|
|
Loading…
Reference in a new issue