mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Update to 0.3.4 API plus bonus feature: code no longer works
Original commit message from CVS: Update to 0.3.4 API plus bonus feature: code no longer works
This commit is contained in:
parent
6cc4981af1
commit
5553eff125
26 changed files with 1996 additions and 1144 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 38267abf56a3428093cea71429dca6a24a927547
|
Subproject commit 22ee9f59590241153f1b162344d760c303b1305a
|
|
@ -12,7 +12,7 @@ m4_define(pygtk_required_version, 1.99.8)
|
||||||
|
|
||||||
m4_define(glib_required_version, 2.0.0)
|
m4_define(glib_required_version, 2.0.0)
|
||||||
m4_define(gtk_required_version, 2.0.0)
|
m4_define(gtk_required_version, 2.0.0)
|
||||||
m4_define(gstreamer_required_version, 0.3.3)
|
m4_define(gstreamer_required_version, 0.3.4)
|
||||||
|
|
||||||
AC_INIT(gst-python, gst_python_version,
|
AC_INIT(gst-python, gst_python_version,
|
||||||
[http://gstreamer.net/])
|
[http://gstreamer.net/])
|
||||||
|
|
|
@ -38,13 +38,13 @@ def filter(filters):
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
filesrc = gst_elementfactory_make ('filesrc', 'source');
|
filesrc = gst_element_factory_make ('filesrc', 'source');
|
||||||
if not filesrc:
|
if not filesrc:
|
||||||
print 'could not find plugin \"filesrc\"'
|
print 'could not find plugin \"filesrc\"'
|
||||||
return -1
|
return -1
|
||||||
filesrc.set_property('location', sys.argv[1])
|
filesrc.set_property('location', sys.argv[1])
|
||||||
|
|
||||||
filesink = gst_elementfactory_make ('disksink', 'sink')
|
filesink = gst_element_factory_make ('disksink', 'sink')
|
||||||
if not filesink:
|
if not filesink:
|
||||||
print 'could not find plugin \"disksink\"'
|
print 'could not find plugin \"disksink\"'
|
||||||
return -1
|
return -1
|
||||||
|
@ -76,7 +76,7 @@ def main():
|
||||||
"A GStreamer based cp(1) with stats"
|
"A GStreamer based cp(1) with stats"
|
||||||
gst_debug_set_categories(0)
|
gst_debug_set_categories(0)
|
||||||
|
|
||||||
stats = gst_elementfactory_make ('statistics', 'stats');
|
stats = gst_element_factory_make ('statistics', 'stats');
|
||||||
if not stats:
|
if not stats:
|
||||||
print 'could not find plugin \"statistics\"'
|
print 'could not find plugin \"statistics\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -85,16 +85,16 @@ class DVDPlay(object):
|
||||||
self.v_thread = gst_thread_new('v_thread')
|
self.v_thread = gst_thread_new('v_thread')
|
||||||
assert self.v_thread
|
assert self.v_thread
|
||||||
|
|
||||||
self.v_queue = gst_elementfactory_make('queue','v_queue')
|
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||||
assert self.v_queue
|
assert self.v_queue
|
||||||
|
|
||||||
self.v_decode = gst_elementfactory_make('mpeg2dec','decode_video')
|
self.v_decode = gst_element_factory_make('mpeg2dec','decode_video')
|
||||||
assert self.v_decode
|
assert self.v_decode
|
||||||
|
|
||||||
self.color = gst_elementfactory_make('colorspace','color')
|
self.color = gst_element_factory_make('colorspace','color')
|
||||||
assert self.color
|
assert self.color
|
||||||
|
|
||||||
self.show = gst_elementfactory_make('videosink','show')
|
self.show = gst_element_factory_make('videosink','show')
|
||||||
assert self.show
|
assert self.show
|
||||||
|
|
||||||
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
||||||
|
@ -109,13 +109,13 @@ class DVDPlay(object):
|
||||||
self.a_thread = gst_thread_new('a_thread')
|
self.a_thread = gst_thread_new('a_thread')
|
||||||
assert self.a_thread
|
assert self.a_thread
|
||||||
|
|
||||||
self.a_queue = gst_elementfactory_make('queue','a_queue')
|
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||||
assert self.a_queue
|
assert self.a_queue
|
||||||
|
|
||||||
self.a_decode = gst_elementfactory_make('a52dec','decode_audio')
|
self.a_decode = gst_element_factory_make('a52dec','decode_audio')
|
||||||
assert self.a_decode
|
assert self.a_decode
|
||||||
|
|
||||||
self.osssink = gst_elementfactory_make('osssink','osssink')
|
self.osssink = gst_element_factory_make('osssink','osssink')
|
||||||
assert self.osssink
|
assert self.osssink
|
||||||
|
|
||||||
for e in (self.a_queue, self.a_decode, self.osssink):
|
for e in (self.a_queue, self.a_decode, self.osssink):
|
||||||
|
@ -129,7 +129,7 @@ class DVDPlay(object):
|
||||||
self.pipeline = gst_pipeline_new('pipeline')
|
self.pipeline = gst_pipeline_new('pipeline')
|
||||||
assert self.pipeline
|
assert self.pipeline
|
||||||
|
|
||||||
self.src = gst_elementfactory_make('dvdsrc','src');
|
self.src = gst_element_factory_make('dvdsrc','src');
|
||||||
assert self.src
|
assert self.src
|
||||||
|
|
||||||
self.src.set_property('location', self.location)
|
self.src.set_property('location', self.location)
|
||||||
|
@ -137,7 +137,7 @@ class DVDPlay(object):
|
||||||
self.src.set_property('chapter', self.chapter)
|
self.src.set_property('chapter', self.chapter)
|
||||||
self.src.set_property('angle', self.angle)
|
self.src.set_property('angle', self.angle)
|
||||||
|
|
||||||
self.parse = gst_elementfactory_make('mpegdemux','parse')
|
self.parse = gst_element_factory_make('mpegdemux','parse')
|
||||||
assert self.parse
|
assert self.parse
|
||||||
|
|
||||||
self.pipeline.add(self.src)
|
self.pipeline.add(self.src)
|
||||||
|
|
|
@ -33,13 +33,13 @@ def main():
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
assert bin
|
assert bin
|
||||||
|
|
||||||
src = gst_elementfactory_make ('fakesrc', 'src')
|
src = gst_element_factory_make ('fakesrc', 'src')
|
||||||
assert src
|
assert src
|
||||||
GObject.connect(src, 'handoff', handoff)
|
GObject.connect(src, 'handoff', handoff)
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', 10)
|
src.set_property('num_buffers', 10)
|
||||||
|
|
||||||
sink = gst_elementfactory_make ('fakesink', 'sink')
|
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||||
assert sink
|
assert sink
|
||||||
GObject.connect(sink, 'handoff', handoff)
|
GObject.connect(sink, 'handoff', handoff)
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
|
|
|
@ -34,12 +34,12 @@ 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 = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
src = gst_elementfactory_make ('fakesrc', 'source');
|
src = gst_element_factory_make ('fakesrc', 'source');
|
||||||
assert src
|
assert src
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', b)
|
src.set_property('num_buffers', b)
|
||||||
|
|
||||||
sink = gst_elementfactory_make ('fakesink', 'sink')
|
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||||
assert sink
|
assert sink
|
||||||
sink.set_property('silent', 1)
|
sink.set_property('silent', 1)
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ def filter(bin):
|
||||||
ccnt = 0
|
ccnt = 0
|
||||||
def c():
|
def c():
|
||||||
global ccnt
|
global ccnt
|
||||||
id = gst_elementfactory_make ('identity', 'c identity %d' % ccnt);
|
id = gst_element_factory_make ('identity', 'c identity %d' % ccnt);
|
||||||
assert id
|
assert id
|
||||||
id.set_property('silent', 1)
|
id.set_property('silent', 1)
|
||||||
id.set_property('loop_based', 0)
|
id.set_property('loop_based', 0)
|
||||||
|
|
|
@ -63,7 +63,7 @@ def identity_add(pipeline, first, count):
|
||||||
|
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
name = 'identity_%03d' % i
|
name = 'identity_%03d' % i
|
||||||
ident = gst_elementfactory_make('identity', name)
|
ident = gst_element_factory_make('identity', name)
|
||||||
assert ident
|
assert ident
|
||||||
ident.set_property('silent', 1)
|
ident.set_property('silent', 1)
|
||||||
pipeline.add(ident)
|
pipeline.add(ident)
|
||||||
|
@ -73,7 +73,7 @@ def identity_add(pipeline, first, count):
|
||||||
return last
|
return last
|
||||||
|
|
||||||
def fakesrc():
|
def fakesrc():
|
||||||
src = gst_elementfactory_make('fakesrc','src')
|
src = gst_element_factory_make('fakesrc','src')
|
||||||
assert src
|
assert src
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', iterations)
|
src.set_property('num_buffers', iterations)
|
||||||
|
@ -81,7 +81,7 @@ def fakesrc():
|
||||||
return src
|
return src
|
||||||
|
|
||||||
def fakesink():
|
def fakesink():
|
||||||
sink = gst_elementfactory_make('fakesink','fakesink')
|
sink = gst_element_factory_make('fakesink','fakesink')
|
||||||
assert sink
|
assert sink
|
||||||
sink.set_property('silent', 1)
|
sink.set_property('silent', 1)
|
||||||
GObject.connect(sink, 'handoff', handoff_sink)
|
GObject.connect(sink, 'handoff', handoff_sink)
|
||||||
|
@ -126,7 +126,7 @@ def queue(argv):
|
||||||
assert src
|
assert src
|
||||||
src_thr.add(src)
|
src_thr.add(src)
|
||||||
|
|
||||||
src_q = gst_elementfactory_make('queue','src_q')
|
src_q = gst_element_factory_make('queue','src_q')
|
||||||
assert src_q
|
assert src_q
|
||||||
src_thr.add(src_q)
|
src_thr.add(src_q)
|
||||||
src.get_pad('src').connect(src_q.get_pad('sink'))
|
src.get_pad('src').connect(src_q.get_pad('sink'))
|
||||||
|
@ -135,7 +135,7 @@ def queue(argv):
|
||||||
|
|
||||||
last = identity_add(pipeline, src_q, idents)
|
last = identity_add(pipeline, src_q, idents)
|
||||||
|
|
||||||
sink_q = gst_elementfactory_make('queue','sink_q')
|
sink_q = gst_element_factory_make('queue','sink_q')
|
||||||
assert sink_q
|
assert sink_q
|
||||||
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'))
|
||||||
|
|
|
@ -36,20 +36,20 @@ def main():
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
# create a disk reader
|
# create a disk reader
|
||||||
filesrc = gst_elementfactory_make ('filesrc', 'disk_source');
|
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||||
if not filesrc:
|
if not filesrc:
|
||||||
print 'could not find plugin \"filesrc\"'
|
print 'could not find plugin \"filesrc\"'
|
||||||
return -1
|
return -1
|
||||||
filesrc.set_property('location', sys.argv[1])
|
filesrc.set_property('location', sys.argv[1])
|
||||||
|
|
||||||
# now get the decoder
|
# now get the decoder
|
||||||
decoder = gst_elementfactory_make ('vorbisdec', 'parse');
|
decoder = gst_element_factory_make ('vorbisdec', 'parse');
|
||||||
if not decoder:
|
if not decoder:
|
||||||
print 'could not find plugin \"vorbisdec\"'
|
print 'could not find plugin \"vorbisdec\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
# and an audio sink
|
# and an audio sink
|
||||||
osssink = gst_elementfactory_make ('osssink', 'play_audio')
|
osssink = gst_element_factory_make ('osssink', 'play_audio')
|
||||||
if not osssink:
|
if not osssink:
|
||||||
print 'could not find plugin \"osssink\"'
|
print 'could not find plugin \"osssink\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -38,13 +38,13 @@ def filter(filters):
|
||||||
# create a new bin to hold the elements
|
# create a new bin to hold the elements
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
filesrc = gst_elementfactory_make ('filesrc', 'source');
|
filesrc = gst_element_factory_make ('filesrc', 'source');
|
||||||
if not filesrc:
|
if not filesrc:
|
||||||
print 'could not find plugin \"filesrc\"'
|
print 'could not find plugin \"filesrc\"'
|
||||||
return -1
|
return -1
|
||||||
filesrc.set_property('location', sys.argv[1])
|
filesrc.set_property('location', sys.argv[1])
|
||||||
|
|
||||||
filesink = gst_elementfactory_make ('disksink', 'sink')
|
filesink = gst_element_factory_make ('disksink', 'sink')
|
||||||
if not filesink:
|
if not filesink:
|
||||||
print 'could not find plugin \"disksink\"'
|
print 'could not find plugin \"disksink\"'
|
||||||
return -1
|
return -1
|
||||||
|
@ -76,7 +76,7 @@ def main():
|
||||||
"A GStreamer based cp(1) with stats"
|
"A GStreamer based cp(1) with stats"
|
||||||
gst_debug_set_categories(0)
|
gst_debug_set_categories(0)
|
||||||
|
|
||||||
stats = gst_elementfactory_make ('statistics', 'stats');
|
stats = gst_element_factory_make ('statistics', 'stats');
|
||||||
if not stats:
|
if not stats:
|
||||||
print 'could not find plugin \"statistics\"'
|
print 'could not find plugin \"statistics\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -85,16 +85,16 @@ class DVDPlay(object):
|
||||||
self.v_thread = gst_thread_new('v_thread')
|
self.v_thread = gst_thread_new('v_thread')
|
||||||
assert self.v_thread
|
assert self.v_thread
|
||||||
|
|
||||||
self.v_queue = gst_elementfactory_make('queue','v_queue')
|
self.v_queue = gst_element_factory_make('queue','v_queue')
|
||||||
assert self.v_queue
|
assert self.v_queue
|
||||||
|
|
||||||
self.v_decode = gst_elementfactory_make('mpeg2dec','decode_video')
|
self.v_decode = gst_element_factory_make('mpeg2dec','decode_video')
|
||||||
assert self.v_decode
|
assert self.v_decode
|
||||||
|
|
||||||
self.color = gst_elementfactory_make('colorspace','color')
|
self.color = gst_element_factory_make('colorspace','color')
|
||||||
assert self.color
|
assert self.color
|
||||||
|
|
||||||
self.show = gst_elementfactory_make('videosink','show')
|
self.show = gst_element_factory_make('videosink','show')
|
||||||
assert self.show
|
assert self.show
|
||||||
|
|
||||||
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
for e in (self.v_queue, self.v_decode, self.color, self.show):
|
||||||
|
@ -109,13 +109,13 @@ class DVDPlay(object):
|
||||||
self.a_thread = gst_thread_new('a_thread')
|
self.a_thread = gst_thread_new('a_thread')
|
||||||
assert self.a_thread
|
assert self.a_thread
|
||||||
|
|
||||||
self.a_queue = gst_elementfactory_make('queue','a_queue')
|
self.a_queue = gst_element_factory_make('queue','a_queue')
|
||||||
assert self.a_queue
|
assert self.a_queue
|
||||||
|
|
||||||
self.a_decode = gst_elementfactory_make('a52dec','decode_audio')
|
self.a_decode = gst_element_factory_make('a52dec','decode_audio')
|
||||||
assert self.a_decode
|
assert self.a_decode
|
||||||
|
|
||||||
self.osssink = gst_elementfactory_make('osssink','osssink')
|
self.osssink = gst_element_factory_make('osssink','osssink')
|
||||||
assert self.osssink
|
assert self.osssink
|
||||||
|
|
||||||
for e in (self.a_queue, self.a_decode, self.osssink):
|
for e in (self.a_queue, self.a_decode, self.osssink):
|
||||||
|
@ -129,7 +129,7 @@ class DVDPlay(object):
|
||||||
self.pipeline = gst_pipeline_new('pipeline')
|
self.pipeline = gst_pipeline_new('pipeline')
|
||||||
assert self.pipeline
|
assert self.pipeline
|
||||||
|
|
||||||
self.src = gst_elementfactory_make('dvdsrc','src');
|
self.src = gst_element_factory_make('dvdsrc','src');
|
||||||
assert self.src
|
assert self.src
|
||||||
|
|
||||||
self.src.set_property('location', self.location)
|
self.src.set_property('location', self.location)
|
||||||
|
@ -137,7 +137,7 @@ class DVDPlay(object):
|
||||||
self.src.set_property('chapter', self.chapter)
|
self.src.set_property('chapter', self.chapter)
|
||||||
self.src.set_property('angle', self.angle)
|
self.src.set_property('angle', self.angle)
|
||||||
|
|
||||||
self.parse = gst_elementfactory_make('mpegdemux','parse')
|
self.parse = gst_element_factory_make('mpegdemux','parse')
|
||||||
assert self.parse
|
assert self.parse
|
||||||
|
|
||||||
self.pipeline.add(self.src)
|
self.pipeline.add(self.src)
|
||||||
|
|
|
@ -33,13 +33,13 @@ def main():
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
assert bin
|
assert bin
|
||||||
|
|
||||||
src = gst_elementfactory_make ('fakesrc', 'src')
|
src = gst_element_factory_make ('fakesrc', 'src')
|
||||||
assert src
|
assert src
|
||||||
GObject.connect(src, 'handoff', handoff)
|
GObject.connect(src, 'handoff', handoff)
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', 10)
|
src.set_property('num_buffers', 10)
|
||||||
|
|
||||||
sink = gst_elementfactory_make ('fakesink', 'sink')
|
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||||
assert sink
|
assert sink
|
||||||
GObject.connect(sink, 'handoff', handoff)
|
GObject.connect(sink, 'handoff', handoff)
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
|
|
|
@ -34,12 +34,12 @@ 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 = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
src = gst_elementfactory_make ('fakesrc', 'source');
|
src = gst_element_factory_make ('fakesrc', 'source');
|
||||||
assert src
|
assert src
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', b)
|
src.set_property('num_buffers', b)
|
||||||
|
|
||||||
sink = gst_elementfactory_make ('fakesink', 'sink')
|
sink = gst_element_factory_make ('fakesink', 'sink')
|
||||||
assert sink
|
assert sink
|
||||||
sink.set_property('silent', 1)
|
sink.set_property('silent', 1)
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ def filter(bin):
|
||||||
ccnt = 0
|
ccnt = 0
|
||||||
def c():
|
def c():
|
||||||
global ccnt
|
global ccnt
|
||||||
id = gst_elementfactory_make ('identity', 'c identity %d' % ccnt);
|
id = gst_element_factory_make ('identity', 'c identity %d' % ccnt);
|
||||||
assert id
|
assert id
|
||||||
id.set_property('silent', 1)
|
id.set_property('silent', 1)
|
||||||
id.set_property('loop_based', 0)
|
id.set_property('loop_based', 0)
|
||||||
|
|
|
@ -63,7 +63,7 @@ def identity_add(pipeline, first, count):
|
||||||
|
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
name = 'identity_%03d' % i
|
name = 'identity_%03d' % i
|
||||||
ident = gst_elementfactory_make('identity', name)
|
ident = gst_element_factory_make('identity', name)
|
||||||
assert ident
|
assert ident
|
||||||
ident.set_property('silent', 1)
|
ident.set_property('silent', 1)
|
||||||
pipeline.add(ident)
|
pipeline.add(ident)
|
||||||
|
@ -73,7 +73,7 @@ def identity_add(pipeline, first, count):
|
||||||
return last
|
return last
|
||||||
|
|
||||||
def fakesrc():
|
def fakesrc():
|
||||||
src = gst_elementfactory_make('fakesrc','src')
|
src = gst_element_factory_make('fakesrc','src')
|
||||||
assert src
|
assert src
|
||||||
src.set_property('silent', 1)
|
src.set_property('silent', 1)
|
||||||
src.set_property('num_buffers', iterations)
|
src.set_property('num_buffers', iterations)
|
||||||
|
@ -81,7 +81,7 @@ def fakesrc():
|
||||||
return src
|
return src
|
||||||
|
|
||||||
def fakesink():
|
def fakesink():
|
||||||
sink = gst_elementfactory_make('fakesink','fakesink')
|
sink = gst_element_factory_make('fakesink','fakesink')
|
||||||
assert sink
|
assert sink
|
||||||
sink.set_property('silent', 1)
|
sink.set_property('silent', 1)
|
||||||
GObject.connect(sink, 'handoff', handoff_sink)
|
GObject.connect(sink, 'handoff', handoff_sink)
|
||||||
|
@ -126,7 +126,7 @@ def queue(argv):
|
||||||
assert src
|
assert src
|
||||||
src_thr.add(src)
|
src_thr.add(src)
|
||||||
|
|
||||||
src_q = gst_elementfactory_make('queue','src_q')
|
src_q = gst_element_factory_make('queue','src_q')
|
||||||
assert src_q
|
assert src_q
|
||||||
src_thr.add(src_q)
|
src_thr.add(src_q)
|
||||||
src.get_pad('src').connect(src_q.get_pad('sink'))
|
src.get_pad('src').connect(src_q.get_pad('sink'))
|
||||||
|
@ -135,7 +135,7 @@ def queue(argv):
|
||||||
|
|
||||||
last = identity_add(pipeline, src_q, idents)
|
last = identity_add(pipeline, src_q, idents)
|
||||||
|
|
||||||
sink_q = gst_elementfactory_make('queue','sink_q')
|
sink_q = gst_element_factory_make('queue','sink_q')
|
||||||
assert sink_q
|
assert sink_q
|
||||||
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'))
|
||||||
|
|
|
@ -36,20 +36,20 @@ def main():
|
||||||
bin = gst_pipeline_new ('pipeline')
|
bin = gst_pipeline_new ('pipeline')
|
||||||
|
|
||||||
# create a disk reader
|
# create a disk reader
|
||||||
filesrc = gst_elementfactory_make ('filesrc', 'disk_source');
|
filesrc = gst_element_factory_make ('filesrc', 'disk_source');
|
||||||
if not filesrc:
|
if not filesrc:
|
||||||
print 'could not find plugin \"filesrc\"'
|
print 'could not find plugin \"filesrc\"'
|
||||||
return -1
|
return -1
|
||||||
filesrc.set_property('location', sys.argv[1])
|
filesrc.set_property('location', sys.argv[1])
|
||||||
|
|
||||||
# now get the decoder
|
# now get the decoder
|
||||||
decoder = gst_elementfactory_make ('vorbisdec', 'parse');
|
decoder = gst_element_factory_make ('vorbisdec', 'parse');
|
||||||
if not decoder:
|
if not decoder:
|
||||||
print 'could not find plugin \"vorbisdec\"'
|
print 'could not find plugin \"vorbisdec\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
# and an audio sink
|
# and an audio sink
|
||||||
osssink = gst_elementfactory_make ('osssink', 'play_audio')
|
osssink = gst_element_factory_make ('osssink', 'play_audio')
|
||||||
if not osssink:
|
if not osssink:
|
||||||
print 'could not find plugin \"osssink\"'
|
print 'could not find plugin \"osssink\"'
|
||||||
return -1
|
return -1
|
||||||
|
|
712
gst/gst.defs
712
gst/gst.defs
File diff suppressed because it is too large
Load diff
|
@ -23,10 +23,4 @@
|
||||||
|
|
||||||
#include "gstreamer-fixes.h"
|
#include "gstreamer-fixes.h"
|
||||||
|
|
||||||
#define NI fprintf(stderr, "%s not implemented\n", __FUNCTION__);
|
|
||||||
|
|
||||||
void gst_clock_set_speed (GstClock *clock, gdouble speed) { NI; }
|
|
||||||
void gst_clock_get_speed (GstClock *clock, gdouble speed) { NI; }
|
|
||||||
void gst_bin_child_error (GstBin *bin, GstElement *child) { NI; }
|
|
||||||
|
|
||||||
#include "tmp-enum-types.c"
|
#include "tmp-enum-types.c"
|
||||||
|
|
|
@ -22,20 +22,6 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#define GST_PAD_TEMPLATE GST_PADTEMPLATE
|
|
||||||
#define GST_TYPE_ELEMENT_FACTORY GST_TYPE_ELEMENTFACTORY
|
|
||||||
#define GST_ELEMENT_FACTORY GST_ELEMENTFACTORY
|
|
||||||
#define GST_AUTOPLUG_FACTORY GST_AUTOPLUGFACTORY
|
|
||||||
#define GST_TYPE_TIME_CACHE GST_TYPE_TIMECACHE
|
|
||||||
#define GST_SCHEDULER_FACTORY GST_SCHEDULERFACTORY
|
|
||||||
#define GST_TIME_CACHE GST_TIMECACHE
|
|
||||||
#define GST_TYPE_FACTORY GST_TYPEFACTORY
|
|
||||||
#define GST_TYPE_TYPE_FACTORY GST_TYPE_TYPEFACTORY
|
|
||||||
#define GST_TYPE_SCHEDULER_FACTORY GST_TYPE_SCHEDULERFACTORY
|
|
||||||
#define GST_TYPE_AUTOPLUG_FACTORY GST_TYPE_AUTOPLUGFACTORY
|
|
||||||
#define GST_TYPE_TYPE_FIND GST_TYPE_TYPEFIND
|
|
||||||
#define GST_TYPE_PAD_TEMPLATE GST_TYPE_PADTEMPLATE
|
|
||||||
|
|
||||||
#include <gst/gstqueue.h>
|
#include <gst/gstqueue.h>
|
||||||
#include <gst/gsttypefind.h>
|
#include <gst/gsttypefind.h>
|
||||||
#include "tmp-enum-types.h"
|
#include "tmp-enum-types.h"
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -206,9 +206,9 @@ gst_pad_connect_return_get_type (void)
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
||||||
|
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
||||||
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
||||||
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
||||||
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
||||||
|
@ -267,19 +267,18 @@ gst_pad_presence_get_type (void)
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||||
GType
|
GType
|
||||||
gst_parse_errors_get_type (void)
|
gst_parse_error_get_type (void)
|
||||||
{
|
{
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
||||||
{ GST_PARSE_ERROR_CREATING_ELEMENT, "GST_PARSE_ERROR_CREATING_ELEMENT", "creating-element" },
|
{ GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" },
|
||||||
{ GST_PARSE_ERROR_NOSUCH_ELEMENT, "GST_PARSE_ERROR_NOSUCH_ELEMENT", "nosuch-element" },
|
{ GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" },
|
||||||
{ GST_PARSE_ERROR_INTERNAL, "GST_PARSE_ERROR_INTERNAL", "internal" },
|
|
||||||
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstParseErrors", values);
|
etype = g_enum_register_static ("GstParseError", values);
|
||||||
}
|
}
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
@ -287,31 +286,47 @@ gst_parse_errors_get_type (void)
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||||
GType
|
GType
|
||||||
gst_props_id_get_type (void)
|
gst_props_type_get_type (void)
|
||||||
{
|
{
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PROPS_END_ID, "GST_PROPS_END_ID", "end-id" },
|
{ GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" },
|
||||||
{ GST_PROPS_INT_ID, "GST_PROPS_INT_ID", "int-id" },
|
{ GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" },
|
||||||
{ GST_PROPS_FLOAT_ID, "GST_PROPS_FLOAT_ID", "float-id" },
|
{ GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" },
|
||||||
{ GST_PROPS_FOURCC_ID, "GST_PROPS_FOURCC_ID", "fourcc-id" },
|
{ GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" },
|
||||||
{ GST_PROPS_BOOL_ID, "GST_PROPS_BOOL_ID", "bool-id" },
|
{ GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" },
|
||||||
{ GST_PROPS_STRING_ID, "GST_PROPS_STRING_ID", "string-id" },
|
{ GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" },
|
||||||
{ GST_PROPS_VAR_ID, "GST_PROPS_VAR_ID", "var-id" },
|
{ GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" },
|
||||||
{ GST_PROPS_LIST_ID, "GST_PROPS_LIST_ID", "list-id" },
|
{ GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" },
|
||||||
{ GST_PROPS_FLOAT_RANGE_ID, "GST_PROPS_FLOAT_RANGE_ID", "float-range-id" },
|
{ GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" },
|
||||||
{ GST_PROPS_INT_RANGE_ID, "GST_PROPS_INT_RANGE_ID", "int-range-id" },
|
{ GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" },
|
||||||
{ GST_PROPS_LAST_ID, "GST_PROPS_LAST_ID", "last-id" },
|
{ GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" },
|
||||||
|
{ GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstPropsId", values);
|
etype = g_enum_register_static ("GstPropsType", values);
|
||||||
}
|
}
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||||
|
GType
|
||||||
|
gst_scheduler_flags_get_type (void)
|
||||||
|
{
|
||||||
|
static GType etype = 0;
|
||||||
|
if (etype == 0) {
|
||||||
|
static const GEnumValue values[] = {
|
||||||
|
{ GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" },
|
||||||
|
{ GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" },
|
||||||
|
{ 0, NULL, NULL }
|
||||||
|
};
|
||||||
|
etype = g_enum_register_static ("GstSchedulerFlags", values);
|
||||||
|
}
|
||||||
|
return etype;
|
||||||
|
}
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_scheduler_state_get_type (void)
|
gst_scheduler_state_get_type (void)
|
||||||
{
|
{
|
||||||
|
@ -356,11 +371,11 @@ gst_time_cache_certainty_get_type (void)
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_TIMECACHE_UNKNOWN, "GST_TIMECACHE_UNKNOWN", "unknown" },
|
{ GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" },
|
||||||
{ GST_TIMECACHE_CERTAIN, "GST_TIMECACHE_CERTAIN", "certain" },
|
{ GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" },
|
||||||
{ GST_TIMECACHE_FUZZY_LOCATION, "GST_TIMECACHE_FUZZY_LOCATION", "fuzzy-location" },
|
{ GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" },
|
||||||
{ GST_TIMECACHE_FUZZY_TIMESTAMP, "GST_TIMECACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
{ GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
||||||
{ GST_TIMECACHE_FUZZY, "GST_TIMECACHE_FUZZY", "fuzzy" },
|
{ GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
||||||
|
|
|
@ -70,16 +70,19 @@ GType gst_pad_presence_get_type (void);
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||||
|
|
||||||
GType gst_parse_errors_get_type (void);
|
GType gst_parse_error_get_type (void);
|
||||||
#define GST_TYPE_PARSE_ERRORS (gst_parse_errors_get_type())
|
#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type())
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||||
|
|
||||||
GType gst_props_id_get_type (void);
|
GType gst_props_type_get_type (void);
|
||||||
#define GST_TYPE_PROPS_ID (gst_props_id_get_type())
|
#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type())
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||||
|
|
||||||
|
GType gst_scheduler_flags_get_type (void);
|
||||||
|
#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type())
|
||||||
|
|
||||||
GType gst_scheduler_state_get_type (void);
|
GType gst_scheduler_state_get_type (void);
|
||||||
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -23,10 +23,4 @@
|
||||||
|
|
||||||
#include "gstreamer-fixes.h"
|
#include "gstreamer-fixes.h"
|
||||||
|
|
||||||
#define NI fprintf(stderr, "%s not implemented\n", __FUNCTION__);
|
|
||||||
|
|
||||||
void gst_clock_set_speed (GstClock *clock, gdouble speed) { NI; }
|
|
||||||
void gst_clock_get_speed (GstClock *clock, gdouble speed) { NI; }
|
|
||||||
void gst_bin_child_error (GstBin *bin, GstElement *child) { NI; }
|
|
||||||
|
|
||||||
#include "tmp-enum-types.c"
|
#include "tmp-enum-types.c"
|
||||||
|
|
|
@ -22,20 +22,6 @@
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
|
|
||||||
#define GST_PAD_TEMPLATE GST_PADTEMPLATE
|
|
||||||
#define GST_TYPE_ELEMENT_FACTORY GST_TYPE_ELEMENTFACTORY
|
|
||||||
#define GST_ELEMENT_FACTORY GST_ELEMENTFACTORY
|
|
||||||
#define GST_AUTOPLUG_FACTORY GST_AUTOPLUGFACTORY
|
|
||||||
#define GST_TYPE_TIME_CACHE GST_TYPE_TIMECACHE
|
|
||||||
#define GST_SCHEDULER_FACTORY GST_SCHEDULERFACTORY
|
|
||||||
#define GST_TIME_CACHE GST_TIMECACHE
|
|
||||||
#define GST_TYPE_FACTORY GST_TYPEFACTORY
|
|
||||||
#define GST_TYPE_TYPE_FACTORY GST_TYPE_TYPEFACTORY
|
|
||||||
#define GST_TYPE_SCHEDULER_FACTORY GST_TYPE_SCHEDULERFACTORY
|
|
||||||
#define GST_TYPE_AUTOPLUG_FACTORY GST_TYPE_AUTOPLUGFACTORY
|
|
||||||
#define GST_TYPE_TYPE_FIND GST_TYPE_TYPEFIND
|
|
||||||
#define GST_TYPE_PAD_TEMPLATE GST_TYPE_PADTEMPLATE
|
|
||||||
|
|
||||||
#include <gst/gstqueue.h>
|
#include <gst/gstqueue.h>
|
||||||
#include <gst/gsttypefind.h>
|
#include <gst/gsttypefind.h>
|
||||||
#include "tmp-enum-types.h"
|
#include "tmp-enum-types.h"
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -206,9 +206,9 @@ gst_pad_connect_return_get_type (void)
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
{ GST_PAD_CONNECT_REFUSED, "GST_PAD_CONNECT_REFUSED", "refused" },
|
||||||
|
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
||||||
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
{ GST_PAD_CONNECT_OK, "GST_PAD_CONNECT_OK", "ok" },
|
||||||
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
{ GST_PAD_CONNECT_DONE, "GST_PAD_CONNECT_DONE", "done" },
|
||||||
{ GST_PAD_CONNECT_DELAYED, "GST_PAD_CONNECT_DELAYED", "delayed" },
|
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
etype = g_enum_register_static ("GstPadConnectReturn", values);
|
||||||
|
@ -267,19 +267,18 @@ gst_pad_presence_get_type (void)
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||||
GType
|
GType
|
||||||
gst_parse_errors_get_type (void)
|
gst_parse_error_get_type (void)
|
||||||
{
|
{
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
{ GST_PARSE_ERROR_SYNTAX, "GST_PARSE_ERROR_SYNTAX", "syntax" },
|
||||||
{ GST_PARSE_ERROR_CREATING_ELEMENT, "GST_PARSE_ERROR_CREATING_ELEMENT", "creating-element" },
|
{ GST_PARSE_ERROR_NO_SUCH_ELEMENT, "GST_PARSE_ERROR_NO_SUCH_ELEMENT", "no-such-element" },
|
||||||
{ GST_PARSE_ERROR_NOSUCH_ELEMENT, "GST_PARSE_ERROR_NOSUCH_ELEMENT", "nosuch-element" },
|
{ GST_PARSE_ERROR_NO_SUCH_PROPERTY, "GST_PARSE_ERROR_NO_SUCH_PROPERTY", "no-such-property" },
|
||||||
{ GST_PARSE_ERROR_INTERNAL, "GST_PARSE_ERROR_INTERNAL", "internal" },
|
|
||||||
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
{ GST_PARSE_ERROR_CONNECT, "GST_PARSE_ERROR_CONNECT", "connect" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstParseErrors", values);
|
etype = g_enum_register_static ("GstParseError", values);
|
||||||
}
|
}
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
@ -287,31 +286,47 @@ gst_parse_errors_get_type (void)
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||||
GType
|
GType
|
||||||
gst_props_id_get_type (void)
|
gst_props_type_get_type (void)
|
||||||
{
|
{
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_PROPS_END_ID, "GST_PROPS_END_ID", "end-id" },
|
{ GST_PROPS_END_TYPE, "GST_PROPS_END_TYPE", "end-type" },
|
||||||
{ GST_PROPS_INT_ID, "GST_PROPS_INT_ID", "int-id" },
|
{ GST_PROPS_INVALID_TYPE, "GST_PROPS_INVALID_TYPE", "invalid-type" },
|
||||||
{ GST_PROPS_FLOAT_ID, "GST_PROPS_FLOAT_ID", "float-id" },
|
{ GST_PROPS_INT_TYPE, "GST_PROPS_INT_TYPE", "int-type" },
|
||||||
{ GST_PROPS_FOURCC_ID, "GST_PROPS_FOURCC_ID", "fourcc-id" },
|
{ GST_PROPS_FLOAT_TYPE, "GST_PROPS_FLOAT_TYPE", "float-type" },
|
||||||
{ GST_PROPS_BOOL_ID, "GST_PROPS_BOOL_ID", "bool-id" },
|
{ GST_PROPS_FOURCC_TYPE, "GST_PROPS_FOURCC_TYPE", "fourcc-type" },
|
||||||
{ GST_PROPS_STRING_ID, "GST_PROPS_STRING_ID", "string-id" },
|
{ GST_PROPS_BOOL_TYPE, "GST_PROPS_BOOL_TYPE", "bool-type" },
|
||||||
{ GST_PROPS_VAR_ID, "GST_PROPS_VAR_ID", "var-id" },
|
{ GST_PROPS_STRING_TYPE, "GST_PROPS_STRING_TYPE", "string-type" },
|
||||||
{ GST_PROPS_LIST_ID, "GST_PROPS_LIST_ID", "list-id" },
|
{ GST_PROPS_VAR_TYPE, "GST_PROPS_VAR_TYPE", "var-type" },
|
||||||
{ GST_PROPS_FLOAT_RANGE_ID, "GST_PROPS_FLOAT_RANGE_ID", "float-range-id" },
|
{ GST_PROPS_LIST_TYPE, "GST_PROPS_LIST_TYPE", "list-type" },
|
||||||
{ GST_PROPS_INT_RANGE_ID, "GST_PROPS_INT_RANGE_ID", "int-range-id" },
|
{ GST_PROPS_FLOAT_RANGE_TYPE, "GST_PROPS_FLOAT_RANGE_TYPE", "float-range-type" },
|
||||||
{ GST_PROPS_LAST_ID, "GST_PROPS_LAST_ID", "last-id" },
|
{ GST_PROPS_INT_RANGE_TYPE, "GST_PROPS_INT_RANGE_TYPE", "int-range-type" },
|
||||||
|
{ GST_PROPS_LAST_TYPE, "GST_PROPS_LAST_TYPE", "last-type" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstPropsId", values);
|
etype = g_enum_register_static ("GstPropsType", values);
|
||||||
}
|
}
|
||||||
return etype;
|
return etype;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||||
|
GType
|
||||||
|
gst_scheduler_flags_get_type (void)
|
||||||
|
{
|
||||||
|
static GType etype = 0;
|
||||||
|
if (etype == 0) {
|
||||||
|
static const GEnumValue values[] = {
|
||||||
|
{ GST_SCHEDULER_FLAG_FIXED_CLOCK, "GST_SCHEDULER_FLAG_FIXED_CLOCK", "fixed-clock" },
|
||||||
|
{ GST_SCHEDULER_FLAG_LAST, "GST_SCHEDULER_FLAG_LAST", "last" },
|
||||||
|
{ 0, NULL, NULL }
|
||||||
|
};
|
||||||
|
etype = g_enum_register_static ("GstSchedulerFlags", values);
|
||||||
|
}
|
||||||
|
return etype;
|
||||||
|
}
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_scheduler_state_get_type (void)
|
gst_scheduler_state_get_type (void)
|
||||||
{
|
{
|
||||||
|
@ -356,11 +371,11 @@ gst_time_cache_certainty_get_type (void)
|
||||||
static GType etype = 0;
|
static GType etype = 0;
|
||||||
if (etype == 0) {
|
if (etype == 0) {
|
||||||
static const GEnumValue values[] = {
|
static const GEnumValue values[] = {
|
||||||
{ GST_TIMECACHE_UNKNOWN, "GST_TIMECACHE_UNKNOWN", "unknown" },
|
{ GST_TIME_CACHE_UNKNOWN, "GST_TIME_CACHE_UNKNOWN", "unknown" },
|
||||||
{ GST_TIMECACHE_CERTAIN, "GST_TIMECACHE_CERTAIN", "certain" },
|
{ GST_TIME_CACHE_CERTAIN, "GST_TIME_CACHE_CERTAIN", "certain" },
|
||||||
{ GST_TIMECACHE_FUZZY_LOCATION, "GST_TIMECACHE_FUZZY_LOCATION", "fuzzy-location" },
|
{ GST_TIME_CACHE_FUZZY_LOCATION, "GST_TIME_CACHE_FUZZY_LOCATION", "fuzzy-location" },
|
||||||
{ GST_TIMECACHE_FUZZY_TIMESTAMP, "GST_TIMECACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
{ GST_TIME_CACHE_FUZZY_TIMESTAMP, "GST_TIME_CACHE_FUZZY_TIMESTAMP", "fuzzy-timestamp" },
|
||||||
{ GST_TIMECACHE_FUZZY, "GST_TIMECACHE_FUZZY", "fuzzy" },
|
{ GST_TIME_CACHE_FUZZY, "GST_TIME_CACHE_FUZZY", "fuzzy" },
|
||||||
{ 0, NULL, NULL }
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
etype = g_enum_register_static ("GstTimeCacheCertainty", values);
|
||||||
|
|
|
@ -70,16 +70,19 @@ GType gst_pad_presence_get_type (void);
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstparse.h" */
|
/* enumerations from "/usr/include/gst/gstparse.h" */
|
||||||
|
|
||||||
GType gst_parse_errors_get_type (void);
|
GType gst_parse_error_get_type (void);
|
||||||
#define GST_TYPE_PARSE_ERRORS (gst_parse_errors_get_type())
|
#define GST_TYPE_PARSE_ERROR (gst_parse_error_get_type())
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstprops.h" */
|
/* enumerations from "/usr/include/gst/gstprops.h" */
|
||||||
|
|
||||||
GType gst_props_id_get_type (void);
|
GType gst_props_type_get_type (void);
|
||||||
#define GST_TYPE_PROPS_ID (gst_props_id_get_type())
|
#define GST_TYPE_PROPS_TYPE (gst_props_type_get_type())
|
||||||
|
|
||||||
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
/* enumerations from "/usr/include/gst/gstscheduler.h" */
|
||||||
|
|
||||||
|
GType gst_scheduler_flags_get_type (void);
|
||||||
|
#define GST_TYPE_SCHEDULER_FLAGS (gst_scheduler_flags_get_type())
|
||||||
|
|
||||||
GType gst_scheduler_state_get_type (void);
|
GType gst_scheduler_state_get_type (void);
|
||||||
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
#define GST_TYPE_SCHEDULER_STATE (gst_scheduler_state_get_type())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue