[Bug 677918] New: GstPlayBin raises RuntimeError accesing to property element
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Jun 11 22:08:12 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=677918
GStreamer | gst-plugins-base | 0.11.x
Summary: GstPlayBin raises RuntimeError accesing to property
element
Classification: Platform
Product: GStreamer
Version: 0.11.x
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: shakaran at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Using the object GstPlayBin function causes a RuntimeError exception on python.
I am using Ubuntu 12.10 with Gstreamer 0.11.91-2.
This is the exaple code:
#!/usr/bin/env python
# -*- coding: utf-8; tab-width: 4; mode: python -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-
# vi: set ft=python sts=4 ts=4 sw=4 noet
import sys
import gi
try:
gi.require_version('Gst', '1.0')
from gi.repository import Gst
except ValueError:
print 'Could not find required Gstreamer 1.0 library.'
sys.exit(1)
# Setup GStreamer
Gst.init(None)
Gst.init_check(None)
print Gst.version_string(), Gst.version()
if Gst.ElementFactory.find('playbin'): # filesrc
player = Gst.ElementFactory.make('playbin', 'MultimediaPlayer')
if player == None:
print 'Error: could not create the player'
sys.exit(1)
else:
print 'Player element', player.element
else:
print 'Error: could not find the playbin plugin for gstreamer'
sys.exit(1)
Running the example shows this traceback
GStreamer 1.0.0 (1L, 0L, 0L, 0L)
Player element
Traceback (most recent call last):
File "/home/shakaran/gst_player_element.py", line 28, in <module>
print 'Player element', player.element
RuntimeError: unable to get the value
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list