QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GStreamer::PadProbe Class Reference

#include <GstScoped.h>

Public Member Functions

 PadProbe ()=default
 ~PadProbe ()
 PadProbe (const PadProbe &)=delete
PadProbe & operator= (const PadProbe &)=delete
bool add (GstPad *pad, GstPadProbeType mask, GstPadProbeCallback callback, gpointer userData, GDestroyNotify destroyData=nullptr)
 gst_pad_add_probe() on pad, replacing the probe held so far. False when the probe wasn't added.
void remove () noexcept

Detailed Description

A pad probe owned like a scoped pointer: holds the pad and the probe id from add() until remove() or destruction. Call remove() explicitly where the probe must go before something else is torn down.

Definition at line 231 of file GstScoped.h.

Constructor & Destructor Documentation

◆ PadProbe() [1/2]

GStreamer::PadProbe::PadProbe ( )
default

Referenced by operator=(), and PadProbe().

◆ ~PadProbe()

GStreamer::PadProbe::~PadProbe ( )
inline

Definition at line 236 of file GstScoped.h.

References remove().

◆ PadProbe() [2/2]

GStreamer::PadProbe::PadProbe ( const PadProbe & )
delete

References PadProbe().

Member Function Documentation

◆ add()

bool GStreamer::PadProbe::add ( GstPad * pad,
GstPadProbeType mask,
GstPadProbeCallback callback,
gpointer userData,
GDestroyNotify destroyData = nullptr )
inline

gst_pad_add_probe() on pad, replacing the probe held so far. False when the probe wasn't added.

Definition at line 242 of file GstScoped.h.

References GStreamer::adoptPad(), and remove().

◆ operator=()

PadProbe & GStreamer::PadProbe::operator= ( const PadProbe & )
delete

References PadProbe().

◆ remove()

void GStreamer::PadProbe::remove ( )
inlinenoexcept

Definition at line 253 of file GstScoped.h.

Referenced by add(), and ~PadProbe().


The documentation for this class was generated from the following file: