18 if (GstCaps *caps = gst_pad_get_current_caps(pad)) {
23 m_capsProbeId = gst_pad_add_probe(
26 ? GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM
27 : GST_PAD_PROBE_TYPE_EVENT_UPSTREAM,
33 m_bufferProbeId = gst_pad_add_probe(
34 pad, GST_PAD_PROBE_TYPE_BUFFER, bufferProbe,
this,
nullptr);
40 if (m_capsProbeId != -1) {
41 gst_pad_remove_probe(pad, m_capsProbeId);
44 if (m_bufferProbeId != -1) {
45 gst_pad_remove_probe(pad, m_bufferProbeId);
59GstPadProbeReturn QGstreamerBufferProbe::capsProbe(GstPad *, GstPadProbeInfo *
info, gpointer
user_data)
63 if (GstEvent *
const event = gst_pad_probe_info_get_event(
info)) {
64 if (GST_EVENT_TYPE(
event) == GST_EVENT_CAPS) {
66 gst_event_parse_caps(
event, &caps);
71 return GST_PAD_PROBE_OK;
74GstPadProbeReturn QGstreamerBufferProbe::bufferProbe(
78 if (GstBuffer *
const buffer = gst_pad_probe_info_get_buffer(
info))
80 return GST_PAD_PROBE_OK;
virtual bool probeBuffer(GstBuffer *buffer)
QGstreamerBufferProbe(Flags flags=ProbeAll)
virtual ~QGstreamerBufferProbe()
void removeProbeFromPad(GstPad *pad)
virtual void probeCaps(GstCaps *caps)
void addProbeToPad(GstPad *pad, bool downstream=true)
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void * user_data
QFileInfo info(fileName)
[8]