Administrator
|
I created some GstElements but when I go to unref them in the end it says
"GStreamer-CRITICAL **: gst_object_unref: assertion '((GObject *) object)->ref_count > 0' failed" I checked to see if its null and it isn't but don't understand why it says this. It's only saying about: GstElement* RecBin,* source,* q1,* rtpdepay,* parse,* vtee,* q2,* audioRtpDepay ,* audioParse,* audioDec,* atee; GstElement* q3,* q4,* mux,* appsink; that are in the class. what I do is this steps: 1. setup gstelements 2. link them up 3. start to play when I stop the pipeline 1. null pipeline, unlink them, remove pads 2. unref the gstelements (This is where it errors out) 3. unref pipeline. videoRecClass.h i just gave you the create and unlink and delete for the gstreamer pipeline. VideoRecClass::Create_Pipeline(); void VideoRecClass::delete_pipeline(); bool VideoRecClass::LinkRtspRecPipeline(); bool VideoRecClass::LinkRtspSrcPipeline(); void VideoRecClass::UnlinkRecPipeline(); void VideoRecClass::UnlinkRtspSourcePipeline(); void VideoRecClass::UnreferenceRtspRecVideoData();
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
According to 2nd paragraph of description from https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPipeline.html, all added elements are freed when pipeline is freed. This is a good point to check first.
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by killerrats
Le 17 janv. 2017 4:53 PM, "killerrats" <[hidden email]> a écrit : I created some GstElements but when I go to unref them in the end it says When you add an element to a pipeline, you give the pipeline ownership. No need to unref these elements, the pipeline will do that for you. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |