[gst-devel] ERROR disable-registry

Stefan Kost ensonic at hora-obscura.de
Tue Dec 19 20:27:48 CET 2006


hi,

if you have problem with --disable-registry please post a bug report
*with* the actual compilation bugs to bugzilla.

Second, wait for the binary registry become ready, then you can build a
xml-less gstreamer.

Anyway for the nokia 770, I tried to trim down gstreamer and the best
approach is to only install the plugins that you actually use. Apart you
can safely do --disable-index --disable-loadsave. Look up a erarlier
post I made about this. This contains more details.

Stefan

ram kumar wrote:
> hi,
>     I want to disable the XML library since it 
> 
> occupies more memory.so I have even tried with 
> 
> configuring --disable- registry and --disable-
> 
> loadsave in the gstconfig.h 
> 
> file.But when i compiled the project(libgstreamer)in 
> 
> VC++ 6 workspace i got some compilation errors with 
> 
> gstregistryxml.c and gstxml.c so i removed that files 
> 
> from the project...since iam not using XML 
> 
> library..But iam able to build all the plugins like 
> 
> the "mp3parser" "mad" decoder and "directsound" 
> 
> sink.But when i create my application and try to play 
> 
> a file it says that filesrc element couldn't be 
> 
> created ie)its not able to recognize the 
> 
> coreelements(plugins).
> 
> 2.Please give me the link where i can find the binary 
> 
> registry patch so that i can use the registry without 
> 
> LIBXML .I searched in the bug list
> 
> (http://gstreamer.freedesktop.org) but iam not able 
> 
> to find it..
> 
> I have also attached the code of my CLI player...
>                          Thanks,
>                            Ram 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> ------------------------------------------------------------------------
> 
> // player2.cpp : Defines the entry point for the console application.
> //
> 
> #include "stdafx.h"
> #include <gst/gst.h>
> /*
> * Global objects are usually a bad thing. For the purpose of this
> * example, we will use them, however.
> */
> GstElement *pipeline, *source, *parser, *decoder, *conv, *sink;
> static gboolean
> bus_call (GstBus *bus,
> GstMessage *msg,
> gpointer data)
> {
> 	GMainLoop *loop = (GMainLoop *) data;
> 	switch (GST_MESSAGE_TYPE (msg)) {
> 	case GST_MESSAGE_EOS:
> 	g_print ("End-of-stream\n");
> 	g_main_loop_quit (loop);
> 	break;
> 	case GST_MESSAGE_ERROR: {
> 	gchar *debug;
> 	GError *err;
> 	gst_message_parse_error (msg, &err, &debug);
> 	g_free (debug);
> 	g_print ("Error: %s\n", err->message);
> 	g_error_free (err);
> 	g_main_loop_quit (loop);
> 	break;
> }
> default:
> break;
> }
> return TRUE;
> }
> /*static void new_pad (GstElement *element,GstPad *pad,gpointer data)
> {
> GstPad *sinkpad;
> /* We can now link this pad with the audio decoder */
> /*g_print ("Dynamic pad created, linking parser/decoder\n");
> sinkpad = gst_element_get_pad (decoder, "sink");
> gst_pad_link (pad, sinkpad);
> gst_object_unref (sinkpad);
> }*/
> int main (int argc,char *argv[])
> {
> 	GMainLoop *loop;
> 	GstBus *bus;
> 	/* initialize GStreamer */
> 	gst_init (&argc, &argv);
> 	loop = g_main_loop_new (NULL, FALSE);
> 	/* check input arguments */
> 	if (argc != 2) {
> 	g_print ("Usage: %s <mp3 filename>\n", argv[0]);
> 	return -1;
> }
> /* create elements */
> pipeline = gst_pipeline_new ("audio-player");
> source = gst_element_factory_make ("filesrc", "file-source");
> parser = gst_element_factory_make ("mp3parse", "mp3-parser");
> decoder = gst_element_factory_make ("mad", "mp3-decoder");
> conv = gst_element_factory_make ("audioconvert", "converter");
> sink = gst_element_factory_make ("directsoundsink", "directsound-output");
> if (!pipeline || !source || !parser || !decoder || !conv || !sink) {
> g_print ("source element could not be created\n");
> return -1;
> }
> /* set filename property on the file source. Also add a message
> * handler. */
> g_object_set (G_OBJECT (source), "location", argv[1], NULL);
> bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
> gst_bus_add_watch (bus, bus_call, loop);
> gst_object_unref (bus);
> /* put all elements in a bin */
> gst_bin_add_many (GST_BIN (pipeline),
> source, parser, decoder, conv, sink, NULL);
> /* link together - note that we cannot link the parser and
> * decoder yet, becuse the parser uses dynamic pads. For that,
> * we set a pad-added signal handler. */
> /*gst_element_link (source, parser);
> gst_element_link_many (decoder, conv, sink, NULL);
> g_signal_connect (parser, "pad-added", G_CALLBACK (new_pad), NULL);*/
> gst_element_link_many (source, parser, decoder, conv, sink, NULL);
> /* Now set to playing and iterate. */
> g_print ("Setting to PLAYING\n");
> gst_element_set_state (pipeline, GST_STATE_PLAYING);
> g_print ("Running\n");
> g_main_loop_run (loop);
> /* clean up nicely */
> g_print ("Returned, stopping playback\n");
> gst_element_set_state (pipeline, GST_STATE_NULL);
> g_print ("Deleting pipeline\n");
> gst_object_unref (GST_OBJECT (pipeline));
> return 0;
> }
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list