<HTML><HEAD><TITLE>gst_buffer_unref and pad push</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<P><FONT size=2>&nbsp;Hello Developers,<BR><BR>&nbsp;When a plugin does the gst_pad_push() of a buffer, the next plugin in the<BR>&nbsp;pipeline does the gst_buffer_unref() of that buffer in its chain().<BR><BR>&nbsp;What if gst_pad_push() fails .... in that case is the plugin sending the<BR>&nbsp;buffer has to unreference the buffer or is is done internally by Gstreamer ?<BR><BR>&nbsp;My understanding is it should be done by the plugin doing the pad_push() as<BR>&nbsp;it can be seen in many plugin codes.<BR><BR>&nbsp;But when I am doing as its mentioned above,<BR>&nbsp;I am getting the Gstreamer Warning:&nbsp;</FONT></P>
<P><FONT size=2>(&lt;unknown&gt;:1295): GStreamer-CRITICAL **:</FONT></P>
<P><FONT size=2>gst_mini_object_unref: assertion `mini_object-&gt;refcount &gt; 0' failed<BR>which means , the reference count of the buffer is already 0. </FONT></P>
<P><FONT size=2>I am unable to understand the reason for above.</FONT></P>
<P><FONT size=2>Please help me to understand why am I getting the warning as such .</FONT></P>
<P><FONT size=2>Thanks in advance</FONT></P>
<P><FONT size=2>Ragards,</FONT></P>
<P><FONT size=2>Arnab </P>
<P><BR>&nbsp;</FONT> </P></BODY></HTML>