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
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
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -36,7 +36,7 @@ def filter(filters):
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
# create a new bin to hold the elements
|
# 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:
|
if not filesrc:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -96,7 +96,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build_video_thread(self):
|
def build_video_thread(self):
|
||||||
# ***** pre-construct the video thread *****
|
# ***** pre-construct the video thread *****
|
||||||
self.v_thread = gst_thread_new('v_thread')
|
self.v_thread = Thread('v_thread')
|
||||||
assert self.v_thread
|
assert self.v_thread
|
||||||
|
|
||||||
self.v_queue = gst_element_factory_make('queue','v_queue')
|
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||||
@ -148,7 +148,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build_audio_thread(self):
|
def build_audio_thread(self):
|
||||||
# ***** pre-construct the audio thread *****
|
# ***** pre-construct the audio thread *****
|
||||||
self.a_thread = gst_thread_new('a_thread')
|
self.a_thread = Thread('a_thread')
|
||||||
assert self.a_thread
|
assert self.a_thread
|
||||||
|
|
||||||
self.a_queue = gst_element_factory_make('queue','a_queue')
|
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||||
@ -171,7 +171,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
# ***** construct the main pipeline *****
|
# ***** construct the main pipeline *****
|
||||||
self.pipeline = gst_pipeline_new('pipeline')
|
self.pipeline = Pipeline('pipeline')
|
||||||
assert self.pipeline
|
assert self.pipeline
|
||||||
|
|
||||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -30,7 +30,7 @@ def handoff(sender, *args):
|
|||||||
def main():
|
def main():
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
#gst_debug_set_categories(-1)
|
#gst_debug_set_categories(-1)
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = Pipeline('pipeline')
|
||||||
assert bin
|
assert bin
|
||||||
|
|
||||||
src = gst_element_factory_make('fakesrc', 'src')
|
src = gst_element_factory_make('fakesrc', 'src')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -29,12 +29,12 @@ from cp import filter
|
|||||||
class Identity(Element):
|
class Identity(Element):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__gobject_init__()
|
self.__gobject_init__()
|
||||||
self.sinkpad = gst_pad_new('sink', PAD_SINK)
|
self.sinkpad = Pad('sink', PAD_SINK)
|
||||||
self.add_pad(self.sinkpad)
|
self.add_pad(self.sinkpad)
|
||||||
self.sinkpad.set_chain_function(self.chain)
|
self.sinkpad.set_chain_function(self.chain)
|
||||||
self.sinkpad.set_connect_function(self.pad_connect)
|
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.add_pad(self.srcpad)
|
||||||
self.srcpad.set_connect_function(self.pad_connect)
|
self.srcpad.set_connect_function(self.pad_connect)
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ gobject.type_register(Identity)
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
"A GStreamer Python subclassing example of an identity filter"
|
"A GStreamer Python subclassing example of an identity filter"
|
||||||
gst_debug_set_categories(0)
|
gst_debug_set_categories(0L)
|
||||||
|
|
||||||
identity = Identity()
|
identity = Identity()
|
||||||
identity.set_name('identity')
|
identity.set_name('identity')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -32,7 +32,7 @@ def update(sender, *args):
|
|||||||
|
|
||||||
def build(filters, b):
|
def build(filters, b):
|
||||||
# create a new bin to hold the elements
|
# 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
|
assert src
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -95,7 +95,7 @@ def simple(argv):
|
|||||||
if len(argv) == 2:
|
if len(argv) == 2:
|
||||||
gst_schedulerfactory_set_default_name (argv[1])
|
gst_schedulerfactory_set_default_name (argv[1])
|
||||||
|
|
||||||
pipeline = gst_pipeline_new('pipeline')
|
pipeline = Pipeline('pipeline')
|
||||||
assert pipeline
|
assert pipeline
|
||||||
|
|
||||||
src = fakesrc()
|
src = fakesrc()
|
||||||
@ -116,10 +116,10 @@ def queue(argv):
|
|||||||
if len(arv) == 2:
|
if len(arv) == 2:
|
||||||
gst_schedulerfactory_set_default_name (argv[1])
|
gst_schedulerfactory_set_default_name (argv[1])
|
||||||
|
|
||||||
pipeline = gst_pipeline_new('pipeline')
|
pipeline = Pipeline('pipeline')
|
||||||
assert pipeline
|
assert pipeline
|
||||||
|
|
||||||
src_thr = gst_thread_new('src_thread')
|
src_thr = Thread('src_thread')
|
||||||
assert src_thr
|
assert src_thr
|
||||||
|
|
||||||
src = fakesrc()
|
src = fakesrc()
|
||||||
@ -140,7 +140,7 @@ def queue(argv):
|
|||||||
pipeline.add(sink_q)
|
pipeline.add(sink_q)
|
||||||
last.get_pad('src').connect(sink_q.get_pad('sink'))
|
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
|
assert sink_thr
|
||||||
|
|
||||||
sink = fakesink()
|
sink = fakesink()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -33,7 +33,7 @@ def main():
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = Pipeline('pipeline')
|
||||||
|
|
||||||
# create a disk reader
|
# create a disk reader
|
||||||
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -36,7 +36,7 @@ def filter(filters):
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
# create a new bin to hold the elements
|
# 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:
|
if not filesrc:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -96,7 +96,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build_video_thread(self):
|
def build_video_thread(self):
|
||||||
# ***** pre-construct the video thread *****
|
# ***** pre-construct the video thread *****
|
||||||
self.v_thread = gst_thread_new('v_thread')
|
self.v_thread = Thread('v_thread')
|
||||||
assert self.v_thread
|
assert self.v_thread
|
||||||
|
|
||||||
self.v_queue = gst_element_factory_make('queue','v_queue')
|
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||||
@ -148,7 +148,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build_audio_thread(self):
|
def build_audio_thread(self):
|
||||||
# ***** pre-construct the audio thread *****
|
# ***** pre-construct the audio thread *****
|
||||||
self.a_thread = gst_thread_new('a_thread')
|
self.a_thread = Thread('a_thread')
|
||||||
assert self.a_thread
|
assert self.a_thread
|
||||||
|
|
||||||
self.a_queue = gst_element_factory_make('queue','a_queue')
|
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||||
@ -171,7 +171,7 @@ class DVDPlayer(object):
|
|||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
# ***** construct the main pipeline *****
|
# ***** construct the main pipeline *****
|
||||||
self.pipeline = gst_pipeline_new('pipeline')
|
self.pipeline = Pipeline('pipeline')
|
||||||
assert self.pipeline
|
assert self.pipeline
|
||||||
|
|
||||||
self.src = gst_element_factory_make('dvdreadsrc','src');
|
self.src = gst_element_factory_make('dvdreadsrc','src');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -30,7 +30,7 @@ def handoff(sender, *args):
|
|||||||
def main():
|
def main():
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
#gst_debug_set_categories(-1)
|
#gst_debug_set_categories(-1)
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = Pipeline('pipeline')
|
||||||
assert bin
|
assert bin
|
||||||
|
|
||||||
src = gst_element_factory_make('fakesrc', 'src')
|
src = gst_element_factory_make('fakesrc', 'src')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -29,12 +29,12 @@ from cp import filter
|
|||||||
class Identity(Element):
|
class Identity(Element):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.__gobject_init__()
|
self.__gobject_init__()
|
||||||
self.sinkpad = gst_pad_new('sink', PAD_SINK)
|
self.sinkpad = Pad('sink', PAD_SINK)
|
||||||
self.add_pad(self.sinkpad)
|
self.add_pad(self.sinkpad)
|
||||||
self.sinkpad.set_chain_function(self.chain)
|
self.sinkpad.set_chain_function(self.chain)
|
||||||
self.sinkpad.set_connect_function(self.pad_connect)
|
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.add_pad(self.srcpad)
|
||||||
self.srcpad.set_connect_function(self.pad_connect)
|
self.srcpad.set_connect_function(self.pad_connect)
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ gobject.type_register(Identity)
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
"A GStreamer Python subclassing example of an identity filter"
|
"A GStreamer Python subclassing example of an identity filter"
|
||||||
gst_debug_set_categories(0)
|
gst_debug_set_categories(0L)
|
||||||
|
|
||||||
identity = Identity()
|
identity = Identity()
|
||||||
identity.set_name('identity')
|
identity.set_name('identity')
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -32,7 +32,7 @@ def update(sender, *args):
|
|||||||
|
|
||||||
def build(filters, b):
|
def build(filters, b):
|
||||||
# create a new bin to hold the elements
|
# 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
|
assert src
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -95,7 +95,7 @@ def simple(argv):
|
|||||||
if len(argv) == 2:
|
if len(argv) == 2:
|
||||||
gst_schedulerfactory_set_default_name (argv[1])
|
gst_schedulerfactory_set_default_name (argv[1])
|
||||||
|
|
||||||
pipeline = gst_pipeline_new('pipeline')
|
pipeline = Pipeline('pipeline')
|
||||||
assert pipeline
|
assert pipeline
|
||||||
|
|
||||||
src = fakesrc()
|
src = fakesrc()
|
||||||
@ -116,10 +116,10 @@ def queue(argv):
|
|||||||
if len(arv) == 2:
|
if len(arv) == 2:
|
||||||
gst_schedulerfactory_set_default_name (argv[1])
|
gst_schedulerfactory_set_default_name (argv[1])
|
||||||
|
|
||||||
pipeline = gst_pipeline_new('pipeline')
|
pipeline = Pipeline('pipeline')
|
||||||
assert pipeline
|
assert pipeline
|
||||||
|
|
||||||
src_thr = gst_thread_new('src_thread')
|
src_thr = Thread('src_thread')
|
||||||
assert src_thr
|
assert src_thr
|
||||||
|
|
||||||
src = fakesrc()
|
src = fakesrc()
|
||||||
@ -140,7 +140,7 @@ def queue(argv):
|
|||||||
pipeline.add(sink_q)
|
pipeline.add(sink_q)
|
||||||
last.get_pad('src').connect(sink_q.get_pad('sink'))
|
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
|
assert sink_thr
|
||||||
|
|
||||||
sink = fakesink()
|
sink = fakesink()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
@ -33,7 +33,7 @@ def main():
|
|||||||
return -1
|
return -1
|
||||||
|
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = Pipeline('pipeline')
|
||||||
|
|
||||||
# create a disk reader
|
# create a disk reader
|
||||||
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2.2
|
#!/usr/bin/env python
|
||||||
#
|
#
|
||||||
# gst-python
|
# gst-python
|
||||||
# Copyright (C) 2002 David I. Lehn
|
# Copyright (C) 2002 David I. Lehn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user