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@
|
# the standard variables don't make sense for an uninstalled copy
|
||||||
exec_prefix=@exec_prefix@
|
prefix=
|
||||||
libdir=@libdir@
|
exec_prefix=
|
||||||
includedir=@includedir@
|
libdir=
|
||||||
|
includedir=
|
||||||
|
toolsdir=${pcfiledir}/tools
|
||||||
|
|
||||||
Name: GStreamer Uninstalled
|
Name: GStreamer Uninstalled
|
||||||
Description: Streaming-media framework, Not Installed
|
Description: Streaming-media framework, Not Installed
|
||||||
|
|
|
@ -2,6 +2,7 @@ prefix=@prefix@
|
||||||
exec_prefix=@exec_prefix@
|
exec_prefix=@exec_prefix@
|
||||||
libdir=@libdir@
|
libdir=@libdir@
|
||||||
includedir=@includedir@
|
includedir=@includedir@
|
||||||
|
toolsdir=${exec_prefix}/bin
|
||||||
|
|
||||||
Name: GStreamer
|
Name: GStreamer
|
||||||
Description: Streaming-media framework
|
Description: Streaming-media framework
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <gst/gstconfig.h>
|
#include <gst/gstconfig.h>
|
||||||
|
|
||||||
|
@ -58,7 +59,7 @@ int main(int argc,char *argv[]) {
|
||||||
|
|
||||||
gchar *prev_word = argv[3];
|
gchar *prev_word = argv[3];
|
||||||
gchar *partial_word = argv[2];
|
gchar *partial_word = argv[2];
|
||||||
int partial_len = strlen(partial_word);
|
int partial_len;
|
||||||
GList *elements;
|
GList *elements;
|
||||||
GSList *pads;
|
GSList *pads;
|
||||||
int num_pads;
|
int num_pads;
|
||||||
|
@ -66,9 +67,17 @@ int main(int argc,char *argv[]) {
|
||||||
gchar *word;
|
gchar *word;
|
||||||
GSList *words = NULL;
|
GSList *words = NULL;
|
||||||
|
|
||||||
|
struct stat stat_buf;
|
||||||
|
|
||||||
|
partial_len = strlen(partial_word);
|
||||||
|
|
||||||
/***** Loading the completion information from the registry *****/
|
/***** Loading the completion information from the registry *****/
|
||||||
|
|
||||||
doc = xmlParseFile (GST_CONFIG_DIR "/compreg.xml");
|
if (stat (GST_CONFIG_DIR"/compreg.xml", &stat_buf) == 0) {
|
||||||
|
doc = xmlParseFile (GST_CONFIG_DIR"/compreg.xml");
|
||||||
|
} else {
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
rootnode = doc->xmlRootNode;
|
rootnode = doc->xmlRootNode;
|
||||||
|
|
||||||
elementnode = rootnode->xmlChildrenNode;
|
elementnode = rootnode->xmlChildrenNode;
|
||||||
|
|
Loading…
Reference in a new issue