---
name: "GStreamer::Pad"
section: "3pm"
platform: "linux"
package: "libgstreamer-perl"
version: "0.19-1+b1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/GStreamer::Pad"
---

# GStreamer::Pad(3pm)

Object contained by elements that allows links to other elements

## NAME

GStreamer::Pad -  Object contained by elements that allows links to other elements

## HIERARCHY

```
  Glib::Object
  +----GStreamer::Object
       +----GStreamer::Pad
```

## METHODS

### pad or undef = GStreamer::Pad-\>new ($name, $direction)

- •

  `$name` (string)

- •

  `$direction` (GStreamer::PadDirection)

### pad or undef = GStreamer::Pad-\>new\_from\_template ($templ, $name)

- •

  `$templ` (GStreamer::PadTemplate)

- •

  `$name` (string)

### boolean = $pad-\>accept\_caps ($caps)

- •

  `$caps` (GStreamer::Caps)

### boolean = $pad-\>activate\_pull ($active)

- •

  `$active` (boolean)

### boolean = $pad-\>activate\_push ($active)

- •

  `$active` (boolean)

### $pad-\>set\_active ($active)

- •

  `$active` (boolean)

### caps or undef = $srcpad-\>get\_allowed\_caps

### boolean = $pad-\>set\_blocked ($blocked)

- •

  `$blocked` (boolean)

### caps = $pad-\>get\_caps

### boolean = $pad-\>set\_caps ($caps)

- •

  `$caps` (GStreamer::Caps or undef)

### flowreturn = $pad-\>chain ($buffer)

- •

  `$buffer` (GstBuffer)

### boolean = $pad-\>check\_pull\_range

### paddirection = $pad-\>get\_direction

### boolean = $pad-\>event\_default ($event)

- •

  `$event` (GstEvent)

### $pad-\>fixate\_caps ($caps)

- •

  `$caps` (GStreamer::Caps)

### list = $pad-\>get\_internal\_links\_default

### list = $pad-\>get\_internal\_links

### boolean = $pad-\>is\_active

### boolean = $pad-\>is\_blocked

### boolean = $pad-\>is\_blocking

Since: gst 0.10

### boolean = $pad-\>is\_linked

### iterator = $pad-\>iterate\_internal\_links

Since: gst 0.10

### iterator = $pad-\>iterate\_internal\_links\_default

Since: gst 0.10

### boolean = $srcpad-\>link ($sinkpad)

- •

  `$sinkpad` (GStreamer::Pad)

### caps or undef = $pad-\>get\_negotiated\_caps

### caps = $pad-\>get\_pad\_template\_caps

### padtemplate = $pad-\>get\_pad\_template

### boolean = $pad-\>pause\_task

### boolean = $pad-\>peer\_accept\_caps ($caps)

- •

  `$caps` (GStreamer::Caps)

### pad = $pad-\>get\_peer

### caps = $pad-\>peer\_get\_caps

### boolean = $pad-\>peer\_query ($query)

- •

  `$query` (GstQuery)

Since: gst 0.10

### list = $pad-\>pull\_range ($offset, $size)

- •

  `$offset` (64 bit unsigned)

- •

  `$size` (integer)

### flowreturn = $pad-\>push ($buffer)

- •

  `$buffer` (GstBuffer)

### boolean = $pad-\>push\_event ($event)

- •

  `$event` (GstEvent)

### boolean = $pad-\>query ($query)

- •

  `$query` (GstQuery)

### boolean = $pad-\>query\_default ($query)

- •

  `$query` (GstQuery)

### list = $pad-\>get\_query\_types\_default

### list = $pad-\>get\_query\_types

### list = $pad-\>get\_range ($offset, $size)

- •

  `$offset` (64 bit unsigned)

- •

  `$size` (integer)

### boolean = $pad-\>send\_event ($event)

- •

  `$event` (GstEvent)

### boolean = $pad-\>start\_task ($func, $data=undef)

- •

  `$func` (scalar)

- •

  `$data` (scalar)

### boolean = $pad-\>stop\_task

### $srcpad-\>unlink ($sinkpad)

- •

  `$sinkpad` (GStreamer::Pad)

## PROPERTIES

- 'caps' (GStreamer::Caps : default undef : readable / private)

  The capabilities of the pad

- 'direction' (GStreamer::PadDirection : default "unknown" : readable / writable / construct-only / private)

  The direction of the pad

- 'template' (GStreamer::PadTemplate : default undef : readable / writable / private)

  The GstPadTemplate of this pad

## SIGNALS

- **linked** (GStreamer::Pad, GStreamer::Pad)

  - **unlinked** (GStreamer::Pad, GStreamer::Pad)

  - **request-link** (GStreamer::Pad)

  - boolean = **have-data** (GStreamer::Pad, GStreamer::MiniObject)

  ## ENUMS AND FLAGS

### enum GStreamer::FlowReturn

- •

  'custom-success-2' / 'GST\_FLOW\_CUSTOM\_SUCCESS\_2'

- •

  'custom-success-1' / 'GST\_FLOW\_CUSTOM\_SUCCESS\_1'

- •

  'custom-success' / 'GST\_FLOW\_CUSTOM\_SUCCESS'

- •

  'resend' / 'GST\_FLOW\_RESEND'

- •

  'ok' / 'GST\_FLOW\_OK'

- •

  'not-linked' / 'GST\_FLOW\_NOT\_LINKED'

- •

  'wrong-state' / 'GST\_FLOW\_WRONG\_STATE'

- •

  'unexpected' / 'GST\_FLOW\_UNEXPECTED'

- •

  'not-negotiated' / 'GST\_FLOW\_NOT\_NEGOTIATED'

- •

  'error' / 'GST\_FLOW\_ERROR'

- •

  'not-supported' / 'GST\_FLOW\_NOT\_SUPPORTED'

- •

  'custom-error' / 'GST\_FLOW\_CUSTOM\_ERROR'

- •

  'custom-error-1' / 'GST\_FLOW\_CUSTOM\_ERROR\_1'

- •

  'custom-error-2' / 'GST\_FLOW\_CUSTOM\_ERROR\_2'

### enum GStreamer::PadDirection

- •

  'unknown' / 'GST\_PAD\_UNKNOWN'

- •

  'src' / 'GST\_PAD\_SRC'

- •

  'sink' / 'GST\_PAD\_SINK'

## SEE ALSO

GStreamer, Glib::Object, GStreamer::Object

## COPYRIGHT

Copyright (C) 2005-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See GStreamer for a full notice.
