Rewrite exec handler

This commit is contained in:
Alex X
2025-02-23 20:56:48 +03:00
parent 7d41dc21c1
commit 6fb59949a2
7 changed files with 113 additions and 71 deletions
+3 -4
View File
@@ -1,21 +1,20 @@
package stdin
import (
"os/exec"
"github.com/AlexxIT/go2rtc/pkg/core"
"github.com/AlexxIT/go2rtc/pkg/shell"
)
// Deprecated: should be rewritten to core.Connection
type Client struct {
cmd *exec.Cmd
cmd *shell.Command
medias []*core.Media
sender *core.Sender
send int
}
func NewClient(cmd *exec.Cmd) (*Client, error) {
func NewClient(cmd *shell.Command) (*Client, error) {
c := &Client{
cmd: cmd,
medias: []*core.Media{