c - gstreamer sample documentation code not running -


trying compile , run sample appsrc code after having executed several tutorials. documentation code, supposed run ...

the command used compile

gcc appguideappsrc.c -o appguide `pkg-config --cflags --libs gstreamer-0.10 gstreamer-app-0.10`   

got following error after

appguideappsrc.c: in function ‘cb_need_data’:   appguideappsrc.c:14:8: warning: assignment makes pointer integer without cast [enabled default]   appguideappsrc.c:18:25: error: lvalue required left operand of assignment   

ok, warning fine line throws error seems ok

   gst_buffer_pts (buffer) = timestamp; 

based on answer below @michal, changed timestmap , got following error

(appguide:11043): glib-gobject-critical **: g_object_set: assertion `g_is_object (object)' failed  (appguide:11043): gstreamer-critical **: gst_bin_add_many: assertion `gst_is_element (element_1)' failed    (appguide:11043): gstreamer-critical **: gst_element_link_many: assertion `gst_is_element (element_1)' failed    (appguide:11043): glib-gobject-critical **: g_object_set: assertion `g_is_object (object)' failed    (appguide:11043): glib-gobject-warning **: invalid (null) pointer instance    (appguide:11043): glib-gobject-critical **: g_signal_connect_data: assertion  `g_type_check_instance (instance)' failed   

any inputs ?

references:
whole appsrc sample code

it appears you're trying compile gstreamer-1.0 example older version of gstreamer: 0.10.

gst_buffer_pts , gst_buffer_dts introduced in gstreamer-0.11 , replaced gst_buffer_timestamp available gstreamer-0.10.

either use newer gstreamer version or change gst_buffer_pts gst_buffer_timestamp.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -