How to free appsrc?

classic Classic list List threaded Threaded
3 messages Options
ms
Reply | Threaded
Open this post in threaded view
|

How to free appsrc?

ms
I wanna free appsrc (GstAppSrc) by myself. But i don't know how to do that. Please help me, thank so much!
Reply | Threaded
Open this post in threaded view
|

Re: How to free appsrc?

Tim-Philipp Müller-2
On Mon, 2012-03-05 at 01:04 -0800, ms wrote:

> I wanna free *appsrc (GstAppSrc)* by myself. But i don't know how to do that.
> Please help me, thank so much!

Usually you don't need to free it yourself. Just free (unref) the
pipeline and the pipeline will free all elements that have been added to
it.

However, in general elements are freed with

  gst_element_set_state(element, GST_STATE_NULL);
  gst_object_unref(element);

Cheers
 -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
ms
Reply | Threaded
Open this post in threaded view
|

Re: How to free appsrc?

ms
This post was updated on .
thank so much, and i have another question, ^-^ , "how to get framerate from GstCaps?"