/// <summary>
 /// Detaches the encoder bin from the audiotee
 /// </summary>
 public void Dispose()
 {
     try {
         audiotee.RemoveBin(encoder_bin, ServiceManager.PlayerEngine.CurrentState == PlayerState.Playing);
         Hyena.Log.Debug("[Recorder] Recorder detached");
     } catch (Exception e) {
         Hyena.Log.Information("[Streamrecorder] An exception occurred during gstreamer operation");
         Hyena.Log.Debug(e.StackTrace);
     }
 }