<div dir="ltr">Hi,<div><br></div><div>On running the executable i am getting below error.</div><div><br></div><div><div>(pltutfour:11160): GStreamer-CRITICAL **: gst_element_get_bus: assertion `GST_IS_ELEMENT (element)' failed</div>
<div><br></div><div>(pltutfour:11160): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed</div><div><br></div><div>(pltutfour:11160): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed</div>
<div><br></div><div>(pltutfour:11160): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed</div><div>Unable to set the pipeline to the playing state.</div><div><br></div><div>(pltutfour:11160): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed</div>
</div><div><br></div><div><br></div><div>Regards,</div><div>Mayank</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 19, 2014 at 6:25 PM, Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, 2014-08-19 at 18:20 +0530, Mayank Agarwal wrote:<br>
<br>
Hi,<br>
<br>
> I am trying to compile playback tutorial four but i am getting the<br>
> following error.<br>
><br>
> gcc -Wall playbacktutorialfour.c -o playbacktutorialfour $(pkg-config<br>
> --cflags --libs gstreamer-1.0)<br>
> playbacktutorialfour.c: In function ‘refresh_ui’:<br>
> playbacktutorialfour.c:94:5: error: incompatible type for argument 2<br>
> of ‘gst_element_query_position’<br>
> /usr/local/include/gstreamer-1.0/gst/gstutils.h:947:25: note: expected<br>
> ‘GstFormat’ but argument is of type ‘enum GstFormat *’<br>
> playbacktutorialfour.c:96:9: error: incompatible type for argument 2<br>
> of ‘gst_element_query_duration’<br>
> /usr/local/include/gstreamer-1.0/gst/gstutils.h:948:25: note: expected<br>
> ‘GstFormat’ but argument is of type ‘enum GstFormat *’<br>
<br>
</div></div>It looks like you are compiling 0.10 code against the 1.0 API.<br>
<br>
Please try the tutorial source code from here:<br>
<a href="http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials" target="_blank">http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials</a><br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"> -Tim<br>
<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
<br>
_______________________________________________<br>
gstreamer-embedded mailing list<br>
<a href="mailto:gstreamer-embedded@lists.freedesktop.org">gstreamer-embedded@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded</a><br>
</font></span></blockquote></div><br></div>