my pipeline state remains in paused state even aft...
# egress
b
my pipeline state remains in paused state even after setting it to playing
Copy code
p.mu.Lock()
    gstState := p.pipeline.GetCurrentState()
    fmt.Println("@123 IN RESUME", gstState)
    p.mu.Unlock()

    logger.Debugw("resuming pipeline")
    if err := p.SetState(gst.StatePlaying); err != nil {
        return errors.ErrGstPipelineError(err)
    }

    state, ok := p.UpgradeState(StateRunning)

    p.mu.Lock()
    gstState = p.pipeline.GetCurrentState()
    fmt.Println("@123 IN RESUME AFTER", gstState, state, ok)
    p.mu.Unlock()
c
hard to say without more context - but there is a chance PAUSED->PLAYING transition happens asynchronously - there should be a logic inside watch.go that listens to these