I have just added the possibility of chaning the pipeline on a an error. You
can now do something like this
```
set("log.file",false)
set("log.stdout",true)
set("log.level",5)
p = ref "uridecodebin uri=file:///badurl/file.mp3"
def on_error(e) =
print("got an error: #{e}\nCorrecting file name\n\n\n")
p := "uridecodebin uri=file:///path/to/test.mp3"
3.
end
s = input.gstreamer.audio(pipeline={!p},on_error=on_error)
output.pulseaudio(mksafe(s))
```
and a similar logic should apply to `gstreamer.hls` (not tested but it uses the
above functions).
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/762#issuecomment-493129582
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users