<div dir="ltr">On Fri, Sep 30, 2016 at 1:16 AM Sebastian Dröge <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br class="gmail_msg">
You can use a C++ class but you will have to store it as a pointer, and<br class="gmail_msg">
make sure that you call delete on it when the meta is freed.<br class="gmail_msg">
<br class="gmail_msg">
Storing C++ classes directly in C structs causes memory leaks as their<br class="gmail_msg">
destructor can't be called.<br class="gmail_msg"></blockquote><div><br></div><div>The problem I forgot about with using C++, is there is no direct way to call a C++ method from C.  Can I rename:<br><br> gst-libav/ext/libav/gstavvidenc.c<br></div><div>to<br> gst-libav/ext/libav/gstavvidenc.cpp<br><br></div><div>?  <br><br>Assuming the answer is no, means that I need to change my C++ methods to just be C functions.  It is probably time for me to get a better handle on glib (GObject) stuff.  Until I started working on this gstreamer stuff, I had not written straight C in a couple of decades.  Do you happen to know of a good guide to "GObject for C++ programers"?<br><br></div><div>Thanks,<br><br></div><div>John<br><br> </div></div></div>