Skip to content
Snippets Groups Projects

Waylandsink - same buffer on multiple wl displays

Closes #1338 (closed)

This MR adds a unique WlBuffer context for each display to each WlBuffer, so that the same GstBuffer can be displayed on multiple waylandsink instances, each with their own connection to the wayland display.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • In theory, as @ystreet said on the issue, if we add GstContext sharing through bins (I think waylandsink was written before this was added, not sure), all your waylandsink would share the same display, so a per display cache would make sense, reducing a bit the round-trips and possibly reducing spurious cache dma management (kernel overhead). So I think it's also a good place to store the cache.

  • I think waylandsink was written before this was added

    Context sharing through bins has been there since GstContext was introduced.

  • added 1 commit

    • dd7e7f69 - waylandsink: Keep per display wayland buffer caches

    Compare with previous version

  • Patch looks good, I really think lookup should be locked too, the rest is just nit suggestions.

  • Nicolas Dufresne changed milestone to %1.17.90

    changed milestone to %1.17.90

  • added Blocker label

  • @tpm I'd like this one in for the release.

  • So I'll just wait a little for @dhobsong's feeback on the comment back on the possible missing locking, and then we should be good to wrap.

  • @dhobsong any feedback ?

  • Yes, you're right, there should definitely be locking in gst_wl_display_lookup_buffer().
    I'll add it and fixup the gst_ref_wl_buffer function name too.

  • added 1 commit

    • a15f93cc - waylandsink: Keep per display wayland buffer caches

    Compare with previous version

  • @ndufresne I've pushed the updated commit.

  • Nicolas Dufresne
  • added 2 commits

    • f802d9ed - waylandsink: Keep per display wayland buffer caches
    • b7451258 - waylandsink: use GstMemory instead of GstBuffer for cache lookup

    Compare with previous version

  • Nicolas Dufresne resolved all threads

    resolved all threads

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading