Fix compilation of the samples
This commit is contained in:
parent
6b7a6a8d82
commit
71f1ba9080
@ -98,7 +98,7 @@ public class DecodeBinTranscoder : IDisposable
|
|||||||
decodebin = ElementFactory.Make("decodebin", "decodebin") as DecodeBin;
|
decodebin = ElementFactory.Make("decodebin", "decodebin") as DecodeBin;
|
||||||
decodebin.NewDecodedPad += OnNewDecodedPad;
|
decodebin.NewDecodedPad += OnNewDecodedPad;
|
||||||
|
|
||||||
pipeline.AddMany(filesrc, decodebin, audioconvert, encoder, filesink);
|
pipeline.Add (filesrc, decodebin, audioconvert, encoder, filesink);
|
||||||
|
|
||||||
filesrc.Link(decodebin);
|
filesrc.Link(decodebin);
|
||||||
audioconvert.Link(encoder);
|
audioconvert.Link(encoder);
|
||||||
|
@ -34,7 +34,7 @@ public class HelloWorld
|
|||||||
Bin bin = (Bin) pipeline;
|
Bin bin = (Bin) pipeline;
|
||||||
bin.Bus.AddWatch(new BusFunc(BusCall));
|
bin.Bus.AddWatch(new BusFunc(BusCall));
|
||||||
|
|
||||||
bin.AddMany(source, parser, decoder, conv, identity, sink);
|
bin.Add (source, parser, decoder, conv, identity, sink);
|
||||||
|
|
||||||
if(!source.Link(parser)) {
|
if(!source.Link(parser)) {
|
||||||
Console.WriteLine("link failed between source and parser");
|
Console.WriteLine("link failed between source and parser");
|
||||||
|
@ -18,7 +18,7 @@ public static class GstTypefindTest
|
|||||||
|
|
||||||
typefind.HaveType += OnHaveType;
|
typefind.HaveType += OnHaveType;
|
||||||
|
|
||||||
pipeline.AddMany(source, typefind, sink);
|
pipeline.Add (source, typefind, sink);
|
||||||
source.Link(typefind);
|
source.Link(typefind);
|
||||||
typefind.Link(sink);
|
typefind.Link(sink);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user