Error g_type_check_instance_is_fundamentally_a in compiling gstreamer-1.0
Mayank Agarwal
mayank77fromindia at gmail.com
Wed Apr 15 05:46:02 PDT 2015
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'
#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);
}
More information about the gstreamer-devel
mailing list