Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gst-python
gst-python
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GStreamer
  • gst-pythongst-python
  • Merge Requests
  • !5

Merged
Opened Jan 09, 2019 by Antonio Ospite@ao2Contributor

overrides: add a set_caps() method to the Pad override

  • Overview 5
  • Commits 1
  • Pipelines 2
  • Changes 1

The C API provides the gst_pad_set_caps() helper which makes it easier to set caps on pads (see gst/gstcompat.h in gstreamer core).

Add such handy helper to the python bindings too.

The implementation follows as close as possible the one in gstcompat.h with two changes:

  1. the type check on the pad has been removed because self is guaranteed to be a Gst.Pad in python.
  2. the null check on the caps has been extended to be a type check.

Fixes #19 (closed)

Edited Jan 09, 2019 by Thibault Saunier
Assignee
Assign to
Reviewer
Request review from
1.15.1
Milestone
1.15.1
Assign milestone
Time tracking
Reference: gstreamer/gst-python!5
Source branch: add-Gst.Pad.set_caps