[gst-devel] Init pipeline in the function

Kulecz, Walter (JSC-SK)[WYLE INTEG. SCI. & ENG.] walter.kulecz-1 at nasa.gov
Thu Apr 22 20:15:12 CEST 2010


uisng:

(* pipeline) = gst_pipeline_new( "camera" );

in initPipeline should work, but I don't see what this extra function call in main() actually buys you.
________________________________________
From: Igor Mironchick [imironchick at gmail.com]
Sent: Thursday, April 22, 2010 2:08 AM
To: Discussion of the development of GStreamer
Subject: [gst-devel] Init pipeline in the function

Hi.

I'm a new with gstreamer and glib.

Why can't I init pipeline in function and then use it somewhere else.

Here is the code example:

void initPipeline( GstElement * pipeline )
{
  pipeline = gst_pipeline_new( "camera" )
}

void main()
{
  GstElement * pipeline;

  initPipeline( pipeline );

  // And here pipeline == 0 !!! Why?
}

--
Regards,
Igor Mironchick




More information about the gstreamer-devel mailing list