reference count of gstreamer elements not decresing
new baby
mdamirraza at gmail.com
Fri Nov 9 09:11:12 UTC 2018
I have a use case of restarting Encoder with different resolution but the
reference count of all elements is not decreasing even after calling stop
function(gst_object_unref() & g_main_loop_unref())..
I have added Initialization function ,start function and stop function sudo
code. for reference.
I am using g_main_loop_new and gst_parse_launch() API's to create element
then factory API's
Its working fine but reference count is not decrementing.
start --> restart
wavenc0 --> wavenc1, similarly all the elements
COMMAND cPipeline_Desc
INITIALIZATION funtion
bus = gst_pipeline_get_bus(GST_PIPELINE(m_pstGstConfig->pipeline));
gst_bus_add_watch(bus, bus_call, m_pstGstConfig->loop);
gst_object_unref(bus);
/* Set the pipeline to "playing" state*/
gst_element_set_state(m_pstGstConfig->pipeline, GST_STATE_PLAYING);
RUN function
if (m_pstGstConfig->loop != NULL)
{
printf("\n g loop running \n");
g_main_loop_run(m_pstGstConfig->loop);
}
STOP function
Problem:
1) I have a use case of restarting Encoder with different resolution but
the refrence count is not decreasing even after calling stop function
1st Start
00:00:01.886651627 20932 000001EC670D5F00 WARN wavenc
gstwavenc.c:1068:gst_wavenc_chain:<wavenc0> Could not reorder channels
Restart
0:00:17.125845309 20932 000001EC670D5F00 WARN wavenc
gstwavenc.c:1068:gst_wavenc_chain:<wavenc1> Could not reorder channels
wavenc0 --> wavenc1, similarly all the elements
-----
adi
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list