Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-rtsp-server gst-rtsp-server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 94
    • Issues 94
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gst-rtsp-servergst-rtsp-server
  • Merge requests
  • !9

examples: test-appsrc: fix buffer leak

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ingo Randolf requested to merge i-n-g-o/gst-rtsp-server:fix_memory_leak_in_examples_testappsrc into master Nov 18, 2018
  • Overview 15
  • Commits 1
  • Pipelines 5
  • Changes 1

calling signal "push-buffer" on appsrc does not transfer ownership of buffer: unref buffer to avoid memory leak

look into: gstappsrc.c: function gst_app_src_push_buffer_action calls gst_app_src_push_buffer_full (appsrc, buffer, FALSE). last argument to function gst_app_src_push_buffer_full does define whether or not to steal the buffer-reference.

using signal "push-buffer" on appsrc therefore needs gst_buffer_unref when we are done with the buffer.

Edited Nov 19, 2018 by Ingo Randolf
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_memory_leak_in_examples_testappsrc