urisourcebin: Only rewrite stream-start event once
authorEdward Hervey <edward@centricular.com>
Thu, 12 Dec 2024 04:51:09 +0000 (05:51 +0100)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Fri, 13 Dec 2024 10:46:32 +0000 (10:46 +0000)
commit06f0b20baaf85be8ad8f03f45f54dc43249142f8
tree82a932f6cd083805c6c53a2aaf12ff934bd26f07
parentc46e70bf271d53acfe863845ee3d62b405055506
urisourcebin: Only rewrite stream-start event once

If the custom field is already present, we don't want to rewrite the event
again. Otherwise it would cause downstream into believing that a *new*
stream-start event has arrived ... which isn't the case.

Fixes #4097

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8144>
subprojects/gst-plugins-base/gst/playback/gsturisourcebin.c