sultanalarif / ossbuild

Automatically exported from code.google.com/p/ossbuild
0 stars 0 forks source link

gst_buffer_unref API not exported from DLL #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
gst_buffer_unref API (and probably many others) is not exported from 
libgstreamer-0.10.dll.
I am trying to load GStreamer DLL dynamically to make my program more robust. 
The problem is that I need to be able to load this API dynamically (LoadLibrary 
-> GetProcAddress).

Original issue reported on code.google.com by helix.sp...@gmail.com on 17 Sep 2010 at 6:07

GoogleCodeExporter commented 8 years ago
Which version are you using? It's hard to believe it's not being exported b/c 
most plugins and libs wouldn't have compiled and linked.

Have you examined it under dependency walker?

Original comment by david.g.hoyt on 17 Sep 2010 at 10:11

GoogleCodeExporter commented 8 years ago
Yes, I've checked the latest version 0.10.7 beta 1 under dependency walker and 
the .dll does not export this method. Same goes for older versions too.

In this beta .dll, other than gst_buffer_list_* methods, these are the only 
gst_buffer_* methods exported:

gst_buffer_copy_flags_get_type
gst_buffer_copy_metadata
gst_buffer_create_sub
gst_buffer_flag_get_type
gst_buffer_get_caps
gst_buffer_get_type
gst_buffer_is_metadata_writable
gst_buffer_is_span_fast
gst_buffer_join
gst_buffer_make_metadata_writable
gst_buffer_merge
gst_buffer_new
gst_buffer_new_and_alloc
gst_buffer_set_caps
gst_buffer_span
gst_buffer_stamp
gst_buffer_try_new_and_alloc

Original comment by helix.sp...@gmail.com on 19 Sep 2010 at 12:52

GoogleCodeExporter commented 8 years ago
I forgot that functions such as gst_buffer_unref() are inlined. From 
gstbuffer.h:

static inline void
gst_buffer_unref (GstBuffer * buf)
{
  gst_mini_object_unref (GST_MINI_OBJECT_CAST (buf));
}

You'll note that gst_mini_object_unref() is indeed exported. Please verify that 
these functions aren't inlined first.

Original comment by david.g.hoyt on 22 Sep 2010 at 8:27

GoogleCodeExporter commented 8 years ago
Thanks for the explanation

Original comment by helix.sp...@gmail.com on 23 Sep 2010 at 11:50