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
  • Issues
  • #19
Closed
Open
Created Jan 08, 2019 by Antonio Ospite@ao2

Gst.Pad.set_caps() not available in python

When writing a parser in python I noticed that Gst.Pad.set_caps() is not available in the python API (http://lazka.github.io/pgi-docs/index.html#Gst-1.0/classes/Pad.html#methods).

In the C API gst_pad_set_caps() is not really a GstPad function, but rather a compatibility helper (https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/gst/gstcompat.h#L47).

The shortcoming can be worked around in python by using the equivalent snippet (in case of a source pad):

...
event = Gst.Event.new_caps(caps)
ret = self.srcpad.push_event(event)

However it may still be useful for the python bindings to provide Gst.Pad.set_caps() just to make it easier to reproduce a C example in python or vice versa.

Thank you. Antonio

Assignee
Assign to
Time tracking