Ejemplo n.º 1
0
 public void Destroy()
 {
     if (m_Pipeline != null)
     {
         m_Pipeline.Destroy();
         m_Pipeline = null;
         GStreamerNativeMethods.Unref();
     }
     m_instanceHandle.Free();
 }
Ejemplo n.º 2
0
 private void Destroy()
 {
     if (m_Pipeline != null)
     {
         // Send EOS down the pipeline
         m_Pipeline.StopEncoding();
         // Wait for EOS to reach the end
         while (!m_EOS)
         {
             System.Threading.Thread.Sleep(1000);
         }
         m_Pipeline.Destroy();
         m_Pipeline = null;
         GStreamerNativeMethods.Unref();
         m_instanceHandle.Free();
     }
 }