From: Kulecz, W. (JSC-SK)[W. I. S. & ENG.]
<wal...@na...> - 2010-04-22 18:17:53
|
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 [imi...@gm...] 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 |