Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-python gst-python
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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
  • GStreamer
  • gst-pythongst-python
  • Merge requests
  • !5
The source project of this merge request has been removed.

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

Merged Antonio Ospite requested to merge (removed):add-Gst.Pad.set_caps into master Jan 09, 2019
  • Overview 5
  • 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
Time tracking
Source branch: add-Gst.Pad.set_caps