Fixing first buffer probe type
This commit is contained in:
parent
bfdd93b82a
commit
a9fda60239
|
@ -141,8 +141,7 @@ public:
|
|||
inline static gboolean
|
||||
look_for_tag_event(GstPad *pad, GstEvent **event, gpointer data) {
|
||||
std::cout << "TAG_EVENT: "
|
||||
<< gst_event_type_get_name(GST_EVENT_TYPE(*event)) <<
|
||||
std::endl;
|
||||
<< gst_event_type_get_name(GST_EVENT_TYPE(*event)) << std::endl;
|
||||
if (GST_EVENT_TYPE(*event) != GST_EVENT_TAG)
|
||||
return true;
|
||||
StreamerInternals &instance = *static_cast<StreamerInternals *>(data);
|
||||
|
@ -204,9 +203,7 @@ public:
|
|||
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM | GST_PAD_PROBE_TYPE_PUSH),
|
||||
instance.srcpad_probecallback_event, (void *)&instance, nullptr);
|
||||
instance.id_srcpad_probe_firstbuffer = gst_pad_add_probe(
|
||||
src_pad,
|
||||
static_cast<GstPadProbeType>(
|
||||
GST_PAD_PROBE_TYPE_BUFFER | GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM),
|
||||
src_pad, GST_PAD_PROBE_TYPE_BUFFER,
|
||||
instance.srcpad_probecallback_firstbuffer, (void *)&instance,
|
||||
nullptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue