Error g_type_check_instance_is_fundamentally_a in compiling gstreamer-1.0

Thiago Santos thiagoss at osg.samsung.com
Wed Apr 15 11:39:11 PDT 2015


On 04/15/2015 09:46 AM, Mayank Agarwal wrote:
> Hi
>
> I am getting the following error in compiling the below code:
>
> /usr/lib/gcc/i686-linux-gnu/4.8/../../../../lib/libgstreamer-1.0.so:
> undefined reference to `g_type_check_instance_is_fundamentally_a'
what are you using to build it? You seem to be missing the proper build 
flags.
>
>
> #include <gst/gst.h>
> #include "gstfragment.h"
> #include "gsturidownloader.h"
>
> /*  http://www-itec.uni-klu.ac.at/ftp/datasets/mmsys12/Valkaama/MPDs/Valkaama_1s_act_isoffmain_DIS_23009_1_v_2_1c2_2011_08_30.mpd
> */
> int main(int argc,char *argv[])
> {
> gchar *uri;
> GstUriDownloader *downloader;
> GstBuffer *buffer;
> GstFragment *fragment;
> GError **err;
>
> if(argc < 2)
> g_print("INvalid o of arguments");
> else
> uri = argv[1];
> fragment = gst_fragment_new();
>
> downloader = gst_uri_downloader_new ();
>
> fragment = gst_uri_downloader_fetch_uri (downloader, uri, TRUE,
> FALSE,FALSE,FALSE,err);
>     if (fragment == NULL)
> g_print("failed to download");
> else
> {
> g_print("successfully downloaded");
> //g_print("Start time of fragment = %d\n",fragment.start_time);
> //g_print("Stop time of fragment = %d\n",fragment.stop_time);
>
>
>
> }
> g_free(uri);

> g_free(fragment);
> g_free(buffer);
Also, GstBuffer should be unreffed with gst_buffer_unref and not 
g_free'd directly.
GstFragment is also refcounted and should be unreffed with g_object_unref.
>
> }
Regards,

> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


-- 
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley



More information about the gstreamer-devel mailing list