QMediaPlayer: ignore redundant setSource calls


QML re-evaluates source bindings even when the value is unchanged.
stop() ran before the same-source check, so re-setting the current
source interrupted playback and reset mediaStatus. Check the
source/device pair first and delegate setSource() to
setSourceDevice(). Document the no-op behavior.

[ChangeLog] QMediaPlayer::setSource and QMediaPlayer:: setSourceDevice
will not stop playback anymore if the same source is set.

Fixes: QTBUG-151138
Change-Id: I9e286b72a503327ce51e626572dfa5d032404441
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commitd042ca438a05e8f655fbd9a908853191fe56070b
parent70c3b5a8eb4fbf6a616b561105f3868704c7032b
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeTue, 13 Oct 2026 23:57:58 +0000