public bool Stop() { StreamLog.Debug(context.Identifier, "VLCManagedEncoder: Stopping transcoding"); try { DataOutputStream.Close(); } catch (Exception e) { StreamLog.Info(context.Identifier, "VLCManagedEncoder: Failed to close data output stream", e); } inputTimer.Enabled = false; StreamLog.Trace(context.Identifier, "VLCManagedEncoder: Trying to stop vlc"); transcoder.StopTranscoding(); transcoder = null; StreamLog.Debug(context.Identifier, "VLCManagedEncoder: Stopped transcoding"); return(true); }
public bool Stop() { Log.Debug("VLCManagedEncoder: Stopping transcoding"); try { DataOutputStream.Close(); } catch (Exception e) { Log.Info("VLCManagedEncoder: Failed to close data output stream", e); } infoReader.Abort(); Log.Trace("VLCManagedEncoder: Trying to stop vlc"); transcoder.StopTranscoding(); transcoder = null; Log.Debug("VLCManagedEncoder: Stopped transcoding"); return(true); }