Пример #1
0
 public void Destroy()
 {
     if (m_Pipeline != null)
     {
         m_Pipeline.Destroy();
         m_Pipeline = null;
         GStreamer.Unref();
     }
     m_instanceHandle.Free();
 }
Пример #2
0
 public void Destroy()
 {
     if (m_Pipeline != null)
     {
         m_Pipeline.Destroy();
         m_Pipeline = null;
     }
     m_instanceHandle.Free();
     Debug.Log("[GUB] Destroy");
 }
Пример #3
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;
         GStreamer.Unref();
         m_instanceHandle.Free();
     }
 }