not able to get callbacks from splitmuxsink

shyam shyam.krishna at philips.com
Fri Nov 29 04:29:27 UTC 2019


Hello,

        I want to get  "splitmuxsink-fragment-opened" and
"splitmuxsink-fragment-closed" messages from splitmuxsink.
I have tried adding a pad to the splitmuxsink and subscribed to the message.
	GstPad *ghostpad = gst_ghost_pad_new_no_target("sink", GST_PAD_SINK);
	auto si = gst_element_add_pad(splitmuxsink, ghostpad);
	auto ghostpadactive = gst_pad_set_active(ghostpad, true);
	auto ghostpadprobe = gst_pad_add_probe(ghostpad,
GST_PAD_PROBE_TYPE_DATA_DOWNSTREAM, gstUpdateCb, this, nullptr);
	auto ghostpadadded = gst_element_add_pad(splitmuxsink, ghostpad);

Also I tried adding a watch to the bus and implementing the synchandler.
	auto bus = gst_element_get_bus(GST_ELEMENT(splitmuxsink));
	gst_bus_add_signal_watch(bus);
	gst_bus_enable_sync_message_emission(bus);
	gst_bus_set_sync_handler(bus, (GstBusSyncHandler)my_bus_callback, this,
NULL);
	gst_object_unref(bus);

Both the approaches are not working.please suggest a solution.

Thanks & Regards,
Shyam



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list