gstreamer 0.10 to 1.0 and gtk2 to gtk3 errors
Nox Deleo
noxdeleo at googlemail.com
Sun Feb 3 07:19:51 PST 2013
I've not looked in depth at your code, but one thing that may or may not
help is adding version requirements for the gi modules before you import
them. This should make sure you get the right version. For example:
import gi
gi.require_version('GObject', '2.0')
gi.require_version('Gst', '1.0')
gi.require_version('GstApp', '1.0')
gi.require_version('GstController', '1.0')
from gi.repository import GObject, Gst, GstApp, GstController
On 2 February 2013 13:54, laguillaumie sylvain <s.lagui at free.fr> wrote:
> hi
>
> thanks for the reply tim
>
> i don t have any 0.10 import in my code now can t find why i have errors...
>
> i pushed my code here:
> https://github.com/smolleyes/**gmediafinder-gtk3<https://github.com/smolleyes/gmediafinder-gtk3>
>
> gst files are in GmediaFinder/lib/player
>
> if someone can look at player_gui and engine.py and tell me what could be
> wrong... thnaks a lot :)
>
> the program now stop on:
>
>
> /usr/lib/python2.7/dist-**packages/gi/types.py:47: Warning: cannot
> register existing type `GstObject'
> return info.invoke(*args, **kwargs)
> /usr/lib/python2.7/dist-**packages/gi/types.py:47: Warning:
> g_once_init_leave: assertion `result != 0' failed
> return info.invoke(*args, **kwargs)
> /usr/lib/python2.7/dist-**packages/gi/types.py:47: Warning:
> g_type_register_static: assertion `parent_type > 0' failed
> return info.invoke(*args, **kwargs)
> /usr/lib/python2.7/dist-**packages/gi/types.py:47: Warning: cannot
> register existing type `GstChildProxy'
> return info.invoke(*args, **kwargs)
>
> thanks
>
> Le 31/01/2013 23:37, Tim-Philipp Müller a écrit :
>
> On Thu, 2013-01-31 at 22:36 +0100, laguillaumie sylvain wrote:
>>
>> Hi,
>>
>> i try to port my app to gtk3/gst1.0 but have some errors i dont
>>> understand i can post my code if needed but does someone have an idear
>>> on the followings errors...
>>>
>>> i post in pygtk and gst list but i have this crash since i used :
>>>
>>> self.player.videosink = Gst.ElementFactory.make('**xvimagesink')
>>>
>>>
>>> /usr/lib/python2.7/dist-**packages/gi/types.py:47: Warning: cannot
>>> register existing type `GstObject'
>>>
>> This likely means that for some reason both the old GStreamer 0.10 and
>> the new GStreamer 1.0 are being loaded or used in the application. Both
>> can't co-exist in the same application (only in different applictions on
>> the same system).
>>
>> Cheers
>> -Tim
>>
>>
>> ______________________________**_________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
>> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>>
>
> ______________________________**_________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.**freedesktop.org<gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/**mailman/listinfo/gstreamer-**devel<http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130203/e4ba27be/attachment.html>
More information about the gstreamer-devel
mailing list