Don't suppress gstreamer tags

This commit is contained in:
László Károlyi 2022-05-24 01:00:33 +02:00
parent 1db458fecb
commit b1720398ff
Signed by: karolyi
GPG Key ID: 2DCAF25E55735BFE
1 changed files with 10 additions and 6 deletions

View File

@ -313,12 +313,16 @@ public:
std::cout << "srcpad_probecallback_event called on"
<< std::quoted(GST_PAD_NAME(pad)) << " with an event type "
<< std::quoted(evtype) << std::endl;
if (look_for_tag_event(pad, event, user_data)) {
// std::cout << "dropping tag event" << std::endl;
// Drop all tag events (mark them as handled and unref as per doc)
gst_event_unref(event);
return GST_PAD_PROBE_HANDLED;
}
/*
* Don't suppress tag events anymore, gstreamer needs them
*/
look_for_tag_event(pad, event, user_data);
// if (look_for_tag_event(pad, event, user_data)) {
// // std::cout << "dropping tag event" << std::endl;
// // Drop all tag events (mark them as handled and unref as per doc)
// gst_event_unref(event);
// return GST_PAD_PROBE_HANDLED;
// }
return GST_PAD_PROBE_OK;
}