Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GStreamer] Trim leading zeroes from track IDs #23668

Conversation

vivienne-w
Copy link
Contributor

@vivienne-w vivienne-w commented Feb 1, 2024

48efea4

[GStreamer] Trim leading zeroes from track IDs
https://bugs.webkit.org/show_bug.cgi?id=268549

Reviewed by Xabier Rodriguez-Calvar and Philippe Normand.

Qtdemux inserts leading zeroes when generating stream-ids, this patch
trims them in TrackPrivateBaseGStreamer for a better representation of
their underlying integers.

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId):
(WebCore::TrackPrivateBaseGStreamer::TrackPrivateBaseGStreamer):
(WebCore::TrackPrivateBaseGStreamer::notifyTrackOfStreamChanged):
(WebCore::TrackPrivateBaseGStreamer::trackIdFromPadStreamStartOrUniqueID):

Canonical link: https://commits.webkit.org/274469@main

3be515d

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 wincairo
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug ✅ 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac ✅ 🧪 api-wpe
✅ 🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 gtk
✅ 🧪 api-ios ✅ 🧪 mac-wk2 ✅ 🧪 gtk-wk2
✅ 🛠 tv ✅ 🧪 mac-AS-debug-wk2 ✅ 🧪 api-gtk
✅ 🛠 tv-sim
✅ 🛠 🧪 merge ✅ 🛠 watch
✅ 🛠 watch-sim

@Ahmad-S792 Ahmad-S792 added the WebKitGTK Bugs related to the Gtk API layer. label Feb 3, 2024
@@ -290,8 +301,7 @@ void TrackPrivateBaseGStreamer::notifyTrackOfStreamChanged()
if (!streamId)
return;

GST_INFO("Track %d got stream start for stream %s.", m_index, streamId.get());
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, if you have the opportunity before merging the PR, add again this GST_INFO() line to the final patch. I find these log lines useful when having to debug track issues.
In order to do that, since the PR is already approved, you can just include this line in the commit message. No need to ask for an additional review:

Reviewed by Xabier Rodriguez-Calvar and Philippe Normand.

Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

That line should be included automatically by the commit queue.

Copy link
Contributor

@eocanha eocanha Feb 7, 2024

Choose a reason for hiding this comment

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

Even after resubmitting a patch with fixes? I thought any r+ granted was reset in that case. That's why I've always filled in the "Reviewed by" line when resubmitting last minute fixes after the patch was approved. Thanks for clarifying!

Copy link
Contributor

Choose a reason for hiding this comment

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

That happened before github, since github it works.

@vivienne-w vivienne-w force-pushed the eng/GStreamer-Track-IDs-contain-unneccessary-leading-zeroes branch from b334b04 to 3be515d Compare February 12, 2024 16:33
@philn philn added the merge-queue Applied to send a pull request to merge-queue label Feb 12, 2024
https://bugs.webkit.org/show_bug.cgi?id=268549

Reviewed by Xabier Rodriguez-Calvar and Philippe Normand.

Qtdemux inserts leading zeroes when generating stream-ids, this patch
trims them in TrackPrivateBaseGStreamer for a better representation of
their underlying integers.

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId):
(WebCore::TrackPrivateBaseGStreamer::TrackPrivateBaseGStreamer):
(WebCore::TrackPrivateBaseGStreamer::notifyTrackOfStreamChanged):
(WebCore::TrackPrivateBaseGStreamer::trackIdFromPadStreamStartOrUniqueID):

Canonical link: https://commits.webkit.org/274469@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/GStreamer-Track-IDs-contain-unneccessary-leading-zeroes branch from 3be515d to 48efea4 Compare February 12, 2024 18:33
@webkit-commit-queue
Copy link
Collaborator

Committed 274469@main (48efea4): https://commits.webkit.org/274469@main

Reviewed commits have been landed. Closing PR #23668 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Feb 12, 2024
@webkit-commit-queue webkit-commit-queue merged commit 48efea4 into WebKit:main Feb 12, 2024
webkit-commit-queue pushed a commit to vivienne-w/WebKit that referenced this pull request Feb 27, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
vivienne-w added a commit to WebPlatformForEmbedded/WPEWebKit that referenced this pull request Feb 27, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit/WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
calvaris pushed a commit to WebPlatformForEmbedded/WPEWebKit that referenced this pull request Mar 5, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit/WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
calvaris pushed a commit to WebPlatformForEmbedded/WPEWebKit that referenced this pull request Mar 15, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit/WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
aperezdc pushed a commit that referenced this pull request May 2, 2024
…gi?id=270100

    [GStreamer] Fix trimming of track IDs
    https://bugs.webkit.org/show_bug.cgi?id=270100

    Reviewed by Xabier Rodriguez-Calvar.

    Use StringView::find() to trim zeroes instead of ::trim(), to not remove
    trailing zeroes.

    See previous PR: #23668

    * Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
    (WebCore::trimStreamId): fix implementation

    Canonical link: https://commits.webkit.org/275378@main

Canonical link: https://commits.webkit.org/274313.189@webkitglib/2.44
calvaris pushed a commit to WebPlatformForEmbedded/WPEWebKit that referenced this pull request May 7, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit/WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
calvaris pushed a commit to WebPlatformForEmbedded/WPEWebKit that referenced this pull request Jul 1, 2024
https://bugs.webkit.org/show_bug.cgi?id=270100

Reviewed by Xabier Rodriguez-Calvar.

Use StringView::find() to trim zeroes instead of ::trim(), to not remove
trailing zeroes.

See previous PR: WebKit/WebKit#23668

* Source/WebCore/platform/graphics/gstreamer/TrackPrivateBaseGStreamer.cpp:
(WebCore::trimStreamId): fix implementation

Canonical link: https://commits.webkit.org/275378@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WebKitGTK Bugs related to the Gtk API layer.
Projects
None yet
7 participants