Re: Error in compiling gstreamer playback tutorial four

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,

On running the executable i am getting below error.

(pltutfour:11160): GStreamer-CRITICAL **: gst_element_get_bus: assertion `GST_IS_ELEMENT (element)' failed

(pltutfour:11160): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(pltutfour:11160): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(pltutfour:11160): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed
Unable to set the pipeline to the playing state.

(pltutfour:11160): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed


Regards,
Mayank


On Tue, Aug 19, 2014 at 6:25 PM, Tim Müller <tim@xxxxxxxxxxxxxxx> wrote:
On Tue, 2014-08-19 at 18:20 +0530, Mayank Agarwal wrote:

Hi,

> I am trying to compile playback tutorial four but i am getting the
> following error.
>
> gcc -Wall playbacktutorialfour.c -o playbacktutorialfour $(pkg-config
> --cflags --libs gstreamer-1.0)
> playbacktutorialfour.c: In function ‘refresh_ui’:
> playbacktutorialfour.c:94:5: error: incompatible type for argument 2
> of ‘gst_element_query_position’
> /usr/local/include/gstreamer-1.0/gst/gstutils.h:947:25: note: expected
> ‘GstFormat’ but argument is of type ‘enum GstFormat *’
> playbacktutorialfour.c:96:9: error: incompatible type for argument 2
> of ‘gst_element_query_duration’
> /usr/local/include/gstreamer-1.0/gst/gstutils.h:948:25: note: expected
> ‘GstFormat’ but argument is of type ‘enum GstFormat *’

It looks like you are compiling 0.10 code against the 1.0 API.

Please try the tutorial source code from here:
http://cgit.freedesktop.org/~slomo/gst-sdk-tutorials/tree/gst-sdk/tutorials

Cheers
 -Tim


--
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-embedded mailing list
gstreamer-embedded@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded

_______________________________________________
gstreamer-embedded mailing list
gstreamer-embedded@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/gstreamer-embedded

[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux