Fixing first buffer probe type

This commit is contained in:
László Károlyi 2022-01-29 15:33:48 +01:00
parent bfdd93b82a
commit a9fda60239
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}