20 gst_pad_get_current_caps(pad),
28 m_capsProbeId = gst_pad_add_probe(
31 ? GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM
32 : GST_PAD_PROBE_TYPE_EVENT_UPSTREAM,
38 m_bufferProbeId = gst_pad_add_probe(
39 pad, GST_PAD_PROBE_TYPE_BUFFER, bufferProbe,
this,
nullptr);
45 if (m_capsProbeId != -1) {
46 gst_pad_remove_probe(pad, m_capsProbeId);
49 if (m_bufferProbeId != -1) {
50 gst_pad_remove_probe(pad, m_bufferProbeId);
64GstPadProbeReturn QGstreamerBufferProbe::capsProbe(GstPad *, GstPadProbeInfo *
info, gpointer
user_data)
68 if (GstEvent *
const event = gst_pad_probe_info_get_event(
info)) {
69 if (GST_EVENT_TYPE(
event) == GST_EVENT_CAPS) {
71 gst_event_parse_caps(
event, &caps);
76 return GST_PAD_PROBE_OK;
79GstPadProbeReturn QGstreamerBufferProbe::bufferProbe(
83 if (GstBuffer *
const buffer = gst_pad_probe_info_get_buffer(
info))
85 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