check if output is paused before attempting record split/chapter.

add note to changelog about supported file format for record chapter.
This commit is contained in:
onyx-and-iris 2025-06-23 08:28:49 +01:00
parent 10d50df445
commit f01fd0ca84
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- record split and record chapter commands, see [RecordCmd](https://github.com/onyx-and-iris/gobs-cli?tab=readme-ov-file#recordcmd)
- As of OBS 30.2.0, the only file format supporting *record chapter* is Hybrid MP4.
# [0.12.1] - 2025-06-21

View File

@ -204,6 +204,9 @@ func (cmd *RecordSplitCmd) Run(ctx *context) error {
if !status.OutputActive {
return fmt.Errorf("recording is not in progress")
}
if status.OutputPaused {
return fmt.Errorf("recording is paused, cannot split")
}
_, err = ctx.Client.Record.SplitRecordFile()
if err != nil {
@ -229,6 +232,9 @@ func (cmd *RecordChapterCmd) Run(ctx *context) error {
if !status.OutputActive {
return fmt.Errorf("recording is not in progress")
}
if status.OutputPaused {
return fmt.Errorf("recording is paused, cannot create chapter")
}
var params *record.CreateRecordChapterParams
if cmd.ChapterName == "" {