[Mono-dev] gstreamer-sharp problems

rasive rassah at gmail.com
Sun May 30 08:39:40 EDT 2010


Hello

I just started playing a bit around with the mono bindings for gstreamer,
and have from a python example formed a test program, the python example
works fine, but my mono test program doesn't seem to work because of some
error i get at runtime.

I have tried googling the problem for a day or so, but i can't find any
information regarding this error (actually it's hard to find information
about gst-sharp at all!), does this look like something you have seen
before? And if so, what is the cause of it, and how do i fix it?

The error i'm getting:
** (/home/rasive/Projects/Alarm/Alarm/bin/Debug/Alarm.exe:25079): WARNING
**: Error parsing <unknown>: Error on line 5 char 36: 'libgstapp-0.10.dll"'
is not a valid name: '"' 

(/home/rasive/Projects/Alarm/Alarm/bin/Debug/Alarm.exe:25079):
GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_BIN (bin)' failed

(/home/rasive/Projects/Alarm/Alarm/bin/Debug/Alarm.exe:25079):
GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_BIN (bin)' failed

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at Alarm.model.BeepAction.Run () [0x0003b] in
/home/rasive/Projects/Alarm/Alarm/model/Actions/BeepAction.cs:24 
  at Alarm.model.Test..ctor () [0x0000c] in
/home/rasive/Projects/Alarm/Alarm/model/Test.cs:11 
  at Alarm.model.Test.Main (System.String[] args) [0x00000] in
/home/rasive/Projects/Alarm/Alarm/model/Alarm.cs:1 


line 24 in BeepAction is audiosrc.Link (sink);
---

And this is my mono test program:
Pipeline pipeline = new Pipeline ("pipeline");
Element audiosrc = ElementFactory.Make ("audiosrc", "audio");
pipeline.Add (audiosrc);
			
Element sink = ElementFactory.Make ("alsasink", "sink");
pipeline.Add (sink);
			
audiosrc.Link (sink);
			
pipeline.SetState (State.Playing);
-- 
View this message in context: http://mono.1490590.n4.nabble.com/gstreamer-sharp-problems-tp2236250p2236250.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list