Change-Id: Ib3491bf57df811967ce8d0e17375bb142f6854e2
pulsesink->dump_fd_input = NULL;
if (pulsesink->need_dump_input) {
sinkpad = gst_element_get_static_pad((GstElement *)pulsesink, "sink");
- gst_pad_add_buffer_probe (sinkpad, G_CALLBACK (gst_pulsesink_pad_dump_handler), pulsesink);
+ if (sinkpad) {
+ gst_pad_add_buffer_probe (sinkpad, G_CALLBACK (gst_pulsesink_pad_dump_handler), pulsesink);
+ gst_object_unref (GST_OBJECT(sinkpad));
+ }
}
#endif
#endif /* __TIZEN__ */
/* and activate */
gst_buffer_pool_set_active (pool, TRUE);
+ gst_query_unref (query);
gst_caps_unref (target);
return TRUE;