mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
examples/play.py: Fix the sample player slightly so that the expose method actually gets called by pyGTK.
Original commit message from CVS: * examples/play.py: Fix the sample player slightly so that the expose method actually gets called by pyGTK.
This commit is contained in:
parent
13804466c9
commit
eb8637606b
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2007-10-18 Jan Schmidt <Jan.Schmidt@sun.com>
|
||||
|
||||
* examples/play.py:
|
||||
Fix the sample player slightly so that the expose method
|
||||
actually gets called by pyGTK.
|
||||
|
||||
2007-10-18 Edward Hervey <bilboed@bilboed.com>
|
||||
|
||||
* gst/gst.defs:
|
||||
|
|
|
@ -270,6 +270,11 @@ def main(args):
|
|||
sys.stderr.write("usage: %s URI-OF-MEDIA-FILE\n" % args[0])
|
||||
sys.exit(1)
|
||||
|
||||
# Need to register our derived widget types for implicit event
|
||||
# handlers to get called.
|
||||
gobject.type_register(PlayerWindow)
|
||||
gobject.type_register(VideoWidget)
|
||||
|
||||
w = PlayerWindow()
|
||||
|
||||
if len(args) != 2:
|
||||
|
|
Loading…
Reference in a new issue