Skip to content

Pause playback device as part of subdevice model - #14593

Merged
Nir-Az merged 2 commits into
realsenseai:developmentfrom
AviaAv:playback-pause
Jan 13, 2026
Merged

Nir-Az merged 2 commits into
realsenseai:developmentfrom
AviaAv:playback-pause

Conversation

@AviaAv

@AviaAv AviaAv commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Tracked on: [RSDEV-3814]

@AviaAv
AviaAv requested review from Nir-Az and Copilot January 13, 2026 12:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors playback device pause/resume functionality by moving the playback control logic from the stream model UI layer into the subdevice model. This consolidates the playback state management in a single location and removes redundant code from the UI button handlers.

Changes:

  • Moved playback device pause/resume logic from stream-model.cpp to subdevice-model.cpp
  • Added playback status checks before pausing/resuming to ensure operations only occur when appropriate

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
common/subdevice-model.cpp Added playback device pause/resume calls with status checks in the pause() and resume() methods
common/stream-model.cpp Removed redundant playback pause/resume calls from UI button handlers, now delegated to subdevice model

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread common/subdevice-model.cpp Resolved
Comment thread common/subdevice-model.cpp Resolved
@Nir-Az
Nir-Az merged commit 4df1e1b into realsenseai:development Jan 13, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants