<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">According to 2nd paragraph of description from <a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html" class="">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html</a>, all added elements are freed when pipeline is freed.</div><div class="">This is a good point to check first.<br class=""><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">Yi-Lung (Bruce) Tsai</div><div class=""><a href="mailto:wagamama.tsai@gmail.com" class="">wagamama.tsai@gmail.com</a></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 18, 2017, at 5:45 AM, killerrats <<a href="mailto:koreysjunkmail@gmail.com" class="">koreysjunkmail@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I created some GstElements but when I go to unref them in the end it says <br class="">*"GStreamer-CRITICAL **: gst_object_unref: assertion '((GObject *)<br class="">object)->ref_count > 0' failed"*<br class=""><br class="">I checked to see if its null and it isn't but don't understand why it says<br class="">this. It's only saying about:<br class=""><br class="">*GstElement* RecBin*,** source*,** q1*,** rtpdepay*,** parse*,** vtee*,**<br class="">q2*,** audioRtpDepay*<br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span> ,** audioParse*,** audioDec*,** atee*;<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">    </span>*GstElement* q3*,** q4*,** mux*,** appsink*;<br class=""><br class="">that are in the class.<br class=""><br class="">what I do is this steps:<br class=""><br class="">1. setup gstelements<br class="">2. link them up<br class="">3. start to play<br class="">when I stop the pipeline <br class="">1. null pipeline, unlink them, remove pads<br class="">2. unref the gstelements *(This is where it errors out)*<br class="">3. unref pipeline.<br class=""><br class="">videoRecClass.h <<a href="http://www.planetkorey.com/tmp/videoRecClass.h" class="">http://www.planetkorey.com/tmp/videoRecClass.h</a>>  <br class=""><br class="">i just gave you the create and unlink and delete for the gstreamer pipeline.<br class=""><br class="">VideoRecClass::Create_Pipeline();<br class="">void VideoRecClass::delete_pipeline();<br class="">bool VideoRecClass::LinkRtspRecPipeline();<br class="">bool VideoRecClass::LinkRtspSrcPipeline();<br class="">void VideoRecClass::UnlinkRecPipeline();<br class="">void VideoRecClass::UnlinkRtspSourcePipeline();<br class="">void VideoRecClass::UnreferenceRtspRecVideoData();<br class=""><br class=""><br class=""><br class=""><br class="">--<br class="">View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/gst-unref-object-GstElement-tp4681515.html" class="">http://gstreamer-devel.966125.n4.nabble.com/gst-unref-object-GstElement-tp4681515.html</a><br class="">Sent from the GStreamer-devel mailing list archive at <a href="http://nabble.com" class="">Nabble.com</a>.<br class="">_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>