mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
use "python" vs "python2.2" update for newer bindings and api
Original commit message from CVS: use "python" vs "python2.2" update for newer bindings and api
This commit is contained in:
parent
7cae4e5629
commit
992ec05aaf
17 changed files with 57 additions and 57 deletions
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7
|
||||
Subproject commit fa2e4df50fd965b1dbd3b35b87d914ff87362815
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -36,15 +36,15 @@ def filter(filters):
|
|||
return -1
|
||||
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
filesrc = gst_element_factory_make ('filesrc', 'source');
|
||||
filesrc = gst_element_factory_make('filesrc', 'source');
|
||||
if not filesrc:
|
||||
print 'could not find plugin \"filesrc\"'
|
||||
return -1
|
||||
filesrc.set_property('location', sys.argv[1])
|
||||
|
||||
filesink = gst_element_factory_make ('filesink', 'sink')
|
||||
filesink = gst_element_factory_make('filesink', 'sink')
|
||||
if not filesink:
|
||||
print 'could not find plugin \"filesink\"'
|
||||
return -1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -96,7 +96,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build_video_thread(self):
|
||||
# ***** pre-construct the video thread *****
|
||||
self.v_thread = gst_thread_new('v_thread')
|
||||
self.v_thread = Thread('v_thread')
|
||||
assert self.v_thread
|
||||
|
||||
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||
|
@ -148,7 +148,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build_audio_thread(self):
|
||||
# ***** pre-construct the audio thread *****
|
||||
self.a_thread = gst_thread_new('a_thread')
|
||||
self.a_thread = Thread('a_thread')
|
||||
assert self.a_thread
|
||||
|
||||
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||
|
@ -171,7 +171,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build(self):
|
||||
# ***** construct the main pipeline *****
|
||||
self.pipeline = gst_pipeline_new('pipeline')
|
||||
self.pipeline = Pipeline('pipeline')
|
||||
assert self.pipeline
|
||||
|
||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -30,16 +30,16 @@ def handoff(sender, *args):
|
|||
def main():
|
||||
# create a new bin to hold the elements
|
||||
#gst_debug_set_categories(-1)
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
assert bin
|
||||
|
||||
src = gst_element_factory_make ('fakesrc', 'src')
|
||||
src = gst_element_factory_make('fakesrc', 'src')
|
||||
assert src
|
||||
GObject.connect(src, 'handoff', handoff)
|
||||
src.set_property('silent', 1)
|
||||
src.set_property('num_buffers', 10)
|
||||
|
||||
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||
sink = gst_element_factory_make('fakesink', 'sink')
|
||||
assert sink
|
||||
GObject.connect(sink, 'handoff', handoff)
|
||||
src.set_property('silent', 1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -29,12 +29,12 @@ from cp import filter
|
|||
class Identity(Element):
|
||||
def __init__(self):
|
||||
self.__gobject_init__()
|
||||
self.sinkpad = gst_pad_new('sink', PAD_SINK)
|
||||
self.sinkpad = Pad('sink', PAD_SINK)
|
||||
self.add_pad(self.sinkpad)
|
||||
self.sinkpad.set_chain_function(self.chain)
|
||||
self.sinkpad.set_connect_function(self.pad_connect)
|
||||
|
||||
self.srcpad = gst_pad_new('src', PAD_SRC)
|
||||
self.srcpad = Pad('src', PAD_SRC)
|
||||
self.add_pad(self.srcpad)
|
||||
self.srcpad.set_connect_function(self.pad_connect)
|
||||
|
||||
|
@ -53,7 +53,7 @@ gobject.type_register(Identity)
|
|||
|
||||
def main():
|
||||
"A GStreamer Python subclassing example of an identity filter"
|
||||
gst_debug_set_categories(0)
|
||||
gst_debug_set_categories(0L)
|
||||
|
||||
identity = Identity()
|
||||
identity.set_name('identity')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -32,14 +32,14 @@ def update(sender, *args):
|
|||
|
||||
def build(filters, b):
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
src = gst_element_factory_make ('fakesrc', 'source');
|
||||
src = gst_element_factory_make('fakesrc', 'source');
|
||||
assert src
|
||||
src.set_property('silent', 1)
|
||||
src.set_property('num_buffers', b)
|
||||
|
||||
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||
sink = gst_element_factory_make('fakesink', 'sink')
|
||||
assert sink
|
||||
sink.set_property('silent', 1)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -95,7 +95,7 @@ def simple(argv):
|
|||
if len(argv) == 2:
|
||||
gst_schedulerfactory_set_default_name (argv[1])
|
||||
|
||||
pipeline = gst_pipeline_new('pipeline')
|
||||
pipeline = Pipeline('pipeline')
|
||||
assert pipeline
|
||||
|
||||
src = fakesrc()
|
||||
|
@ -116,10 +116,10 @@ def queue(argv):
|
|||
if len(arv) == 2:
|
||||
gst_schedulerfactory_set_default_name (argv[1])
|
||||
|
||||
pipeline = gst_pipeline_new('pipeline')
|
||||
pipeline = Pipeline('pipeline')
|
||||
assert pipeline
|
||||
|
||||
src_thr = gst_thread_new('src_thread')
|
||||
src_thr = Thread('src_thread')
|
||||
assert src_thr
|
||||
|
||||
src = fakesrc()
|
||||
|
@ -140,7 +140,7 @@ def queue(argv):
|
|||
pipeline.add(sink_q)
|
||||
last.get_pad('src').connect(sink_q.get_pad('sink'))
|
||||
|
||||
sink_thr = gst_thread_new('sink_thread')
|
||||
sink_thr = Thread('sink_thread')
|
||||
assert sink_thr
|
||||
|
||||
sink = fakesink()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -33,7 +33,7 @@ def main():
|
|||
return -1
|
||||
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
# create a disk reader
|
||||
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -36,15 +36,15 @@ def filter(filters):
|
|||
return -1
|
||||
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
filesrc = gst_element_factory_make ('filesrc', 'source');
|
||||
filesrc = gst_element_factory_make('filesrc', 'source');
|
||||
if not filesrc:
|
||||
print 'could not find plugin \"filesrc\"'
|
||||
return -1
|
||||
filesrc.set_property('location', sys.argv[1])
|
||||
|
||||
filesink = gst_element_factory_make ('filesink', 'sink')
|
||||
filesink = gst_element_factory_make('filesink', 'sink')
|
||||
if not filesink:
|
||||
print 'could not find plugin \"filesink\"'
|
||||
return -1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -96,7 +96,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build_video_thread(self):
|
||||
# ***** pre-construct the video thread *****
|
||||
self.v_thread = gst_thread_new('v_thread')
|
||||
self.v_thread = Thread('v_thread')
|
||||
assert self.v_thread
|
||||
|
||||
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||
|
@ -148,7 +148,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build_audio_thread(self):
|
||||
# ***** pre-construct the audio thread *****
|
||||
self.a_thread = gst_thread_new('a_thread')
|
||||
self.a_thread = Thread('a_thread')
|
||||
assert self.a_thread
|
||||
|
||||
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||
|
@ -171,7 +171,7 @@ class DVDPlayer(object):
|
|||
|
||||
def build(self):
|
||||
# ***** construct the main pipeline *****
|
||||
self.pipeline = gst_pipeline_new('pipeline')
|
||||
self.pipeline = Pipeline('pipeline')
|
||||
assert self.pipeline
|
||||
|
||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -30,16 +30,16 @@ def handoff(sender, *args):
|
|||
def main():
|
||||
# create a new bin to hold the elements
|
||||
#gst_debug_set_categories(-1)
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
assert bin
|
||||
|
||||
src = gst_element_factory_make ('fakesrc', 'src')
|
||||
src = gst_element_factory_make('fakesrc', 'src')
|
||||
assert src
|
||||
GObject.connect(src, 'handoff', handoff)
|
||||
src.set_property('silent', 1)
|
||||
src.set_property('num_buffers', 10)
|
||||
|
||||
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||
sink = gst_element_factory_make('fakesink', 'sink')
|
||||
assert sink
|
||||
GObject.connect(sink, 'handoff', handoff)
|
||||
src.set_property('silent', 1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -29,12 +29,12 @@ from cp import filter
|
|||
class Identity(Element):
|
||||
def __init__(self):
|
||||
self.__gobject_init__()
|
||||
self.sinkpad = gst_pad_new('sink', PAD_SINK)
|
||||
self.sinkpad = Pad('sink', PAD_SINK)
|
||||
self.add_pad(self.sinkpad)
|
||||
self.sinkpad.set_chain_function(self.chain)
|
||||
self.sinkpad.set_connect_function(self.pad_connect)
|
||||
|
||||
self.srcpad = gst_pad_new('src', PAD_SRC)
|
||||
self.srcpad = Pad('src', PAD_SRC)
|
||||
self.add_pad(self.srcpad)
|
||||
self.srcpad.set_connect_function(self.pad_connect)
|
||||
|
||||
|
@ -53,7 +53,7 @@ gobject.type_register(Identity)
|
|||
|
||||
def main():
|
||||
"A GStreamer Python subclassing example of an identity filter"
|
||||
gst_debug_set_categories(0)
|
||||
gst_debug_set_categories(0L)
|
||||
|
||||
identity = Identity()
|
||||
identity.set_name('identity')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -32,14 +32,14 @@ def update(sender, *args):
|
|||
|
||||
def build(filters, b):
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
src = gst_element_factory_make ('fakesrc', 'source');
|
||||
src = gst_element_factory_make('fakesrc', 'source');
|
||||
assert src
|
||||
src.set_property('silent', 1)
|
||||
src.set_property('num_buffers', b)
|
||||
|
||||
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||
sink = gst_element_factory_make('fakesink', 'sink')
|
||||
assert sink
|
||||
sink.set_property('silent', 1)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -95,7 +95,7 @@ def simple(argv):
|
|||
if len(argv) == 2:
|
||||
gst_schedulerfactory_set_default_name (argv[1])
|
||||
|
||||
pipeline = gst_pipeline_new('pipeline')
|
||||
pipeline = Pipeline('pipeline')
|
||||
assert pipeline
|
||||
|
||||
src = fakesrc()
|
||||
|
@ -116,10 +116,10 @@ def queue(argv):
|
|||
if len(arv) == 2:
|
||||
gst_schedulerfactory_set_default_name (argv[1])
|
||||
|
||||
pipeline = gst_pipeline_new('pipeline')
|
||||
pipeline = Pipeline('pipeline')
|
||||
assert pipeline
|
||||
|
||||
src_thr = gst_thread_new('src_thread')
|
||||
src_thr = Thread('src_thread')
|
||||
assert src_thr
|
||||
|
||||
src = fakesrc()
|
||||
|
@ -140,7 +140,7 @@ def queue(argv):
|
|||
pipeline.add(sink_q)
|
||||
last.get_pad('src').connect(sink_q.get_pad('sink'))
|
||||
|
||||
sink_thr = gst_thread_new('sink_thread')
|
||||
sink_thr = Thread('sink_thread')
|
||||
assert sink_thr
|
||||
|
||||
sink = fakesink()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
@ -33,7 +33,7 @@ def main():
|
|||
return -1
|
||||
|
||||
# create a new bin to hold the elements
|
||||
bin = gst_pipeline_new ('pipeline')
|
||||
bin = Pipeline('pipeline')
|
||||
|
||||
# create a disk reader
|
||||
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python2.2
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# gst-python
|
||||
# Copyright (C) 2002 David I. Lehn
|
||||
|
|
Loading…
Reference in a new issue