// This signal callback triggers when appsrc needs  Here, we add an idle handler
 // to the mainloop to start pushing data into the appsrc
 static void StartFeed(object sender, Gst.App.NeedDataArgs args)
 {
     if (Sourceid == 0)
     {
         Console.WriteLine("Start feeding");
         Sourceid = GLib.Idle.Add(PushData);
     }
 }
 static void HandleStartFeed(object o, Gst.App.NeedDataArgs args)
 {
     if (_data.SourceId != 0)
     {
         return;
     }
     Console.WriteLine("Start feeding");
     _data.SourceId = GLib.Idle.Add(PushData);
 }