Commit graph

217 commits

Author SHA1 Message Date
Thomas Vander Stichele
2a415f1abd fix up audioconvert caps nego, remove float stuff, remove rate stuff gst-launch-0.7 -v sinesrc ! audioconvert ! audi...
Original commit message from CVS:

fix up audioconvert caps nego, remove float stuff, remove rate stuff
gst-launch-0.7  -v sinesrc ! audioconvert ! audio/x-raw-int,rate=23000 ! wavenc ! filesink location=test.wav now writes a completely useless 23000 Hz wave file
2004-01-12 19:46:45 +00:00
David Schleef
61763a83f0 gst/audioconvert/gstaudioconvert.c: Test that pad is negotiated before getting its caps.
Original commit message from CVS:
* gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_link):
Test that pad is negotiated before getting its caps.
2004-01-12 18:59:57 +00:00
Julien Moutte
becf91cdfc ext/ffmpeg/gstffmpegcolorspace.c: Fixing the pad_alloc_buffer implementation to use ->srcpad
Original commit message from CVS:
2004-01-11  Julien MOUTTE  <julien@moutte.net>

* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain): Fixing the
pad_alloc_buffer implementation to use ->srcpad
* ext/hermes/gstcolorspace.c: (gst_colorspace_chain): Fixing the
pad_alloc_buffer implementation to use ->srcpad
* gst/videoscale/gstvideoscale.c: (gst_videoscale_chain):  Fixing the
pad_alloc_buffer implementation to use ->srcpad
* sys/ximage/ximagesink.c: (gst_ximagesink_ximage_new),
(gst_ximagesink_chain), (gst_ximagesink_buffer_free),
(gst_ximagesink_buffer_alloc): Now only use GST_BUFFER_PRIVATE to keep
a reference to everything we need.
* sys/ximage/ximagesink.h: adding a reference to the sink in the image.
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new),
(gst_xvimagesink_chain), (gst_xvimagesink_buffer_free),
(gst_xvimagesink_buffer_alloc): Now only use GST_BUFFER_PRIVATE to keep
a reference to everything we need.
* sys/xvimage/xvimagesink.h: adding a reference to the sink in the image
2004-01-11 22:52:29 +00:00
Julien Moutte
7b89c1a8bf ext/ffmpeg/gstffmpegcolorspace.c: Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
Original commit message from CVS:
* ext/ffmpeg/gstffmpegcolorspace.c: (gst_ffmpegcsp_chain):
Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
* gst-libs/gst/xoverlay/xoverlay.c:
(gst_x_overlay_got_desired_size): Updating doc for the xid being 0.
* gst/videoscale/gstvideoscale.c: (gst_videoscale_chain):
Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
* gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_get):
Implementing gst_pad_alloc_buffer to use optimized buffer allocation.
* sys/ximage/ximagesink.c: (gst_ximagesink_chain),
(gst_ximagesink_buffer_free), (gst_ximagesink_buffer_alloc),
(gst_ximagesink_set_xwindow_id), (gst_ximagesink_init): Implementing
the bufferalloc_function to replace bufferpools, fixing the XOverlay
interface implementation to handle xid being 0 and fix some bugs
triggered by Benjamin's testcase.
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_chain),
(gst_xvimagesink_buffer_free), (gst_xvimagesink_buffer_alloc),
(gst_xvimagesink_set_xwindow_id), (gst_xvimagesink_init): Implementing
the bufferalloc_function to replace bufferpools, fixing the XOverlay
interface implementation to handle xid being 0 and fix some bugs
triggered by Benjamin's testcase.
2004-01-09 18:05:57 +00:00
David Schleef
899b633288 ext/ffmpeg/gstffmpegenc.c: Fix pad_link function to handle formats that ffmpeg returns as multiple caps structures.
Original commit message from CVS:
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_connect):
Fix pad_link function to handle formats that ffmpeg returns
as multiple caps structures.
* gst/videofilter/gstvideofilter.c: (gst_videofilter_chain):
Only complain if source buffer is _smaller_ than expected.
* gst/videoscale/gstvideoscale.c: (gst_videoscale_init),
(gst_videoscale_handle_src_event): Resize navigation events
when passing them upstream.
* gst/videotestsrc/gstvideotestsrc.c:
* gst/videotestsrc/gstvideotestsrc.h:
* gst/videotestsrc/videotestsrc.c:
* gst/videotestsrc/videotestsrc.h:
Rewrite many of the buffer painting functions to handle odd
sizes (for many formats, size%4!=0 or size%8!=0).  Most have
been verified to work with my video card.
* testsuite/gst-lint:  Add check for elements calling
gst_pad_get_caps() instead of gst_pad_get_allowed_caps().
2004-01-09 01:53:31 +00:00
Jan Schmidt
b22d0599b3 ext/dv/gstdvdec.c: Fix caps negotiation.
Original commit message from CVS:
* ext/dv/gstdvdec.c: (gst_dvdec_loop):
Fix caps negotiation.

* ext/dvdnav/dvdnavsrc.c: (dvdnavsrc_class_init),
(dvdnavsrc_update_buttoninfo), (dvdnavsrc_get),
(dvdnavsrc_get_event_mask), (dvdnav_handle_navigation_event),
(dvdnavsrc_event):
* ext/mpeg2dec/gstmpeg2dec.c:
* gst-libs/gst/navigation/navigation.c:
(gst_navigation_send_key_event), (gst_navigation_send_mouse_event):
* gst-libs/gst/navigation/navigation.h:
* gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_handle_src_event):
* sys/ximage/ximagesink.c: (gst_ximagesink_handle_xevents):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_handle_xevents):
Super-simple first version of mouse and keyboard events. Clicking
on a DVD menu now works, although it may not take you where you
expected.

* gst/sine/gstsinesrc.c: (gst_sinesrc_src_fixate):
* gst/videotestsrc/gstvideotestsrc.c:
(gst_videotestsrc_src_fixate):
These fixate functions were broken - they never actually
fixated :)
2004-01-06 16:42:10 +00:00
David Schleef
5cbe819fe2 Fix the fixate functions to handle new prototype:
Original commit message from CVS:
Fix the fixate functions to handle new prototype:
* gst/sine/gstsinesrc.c: (gst_sinesrc_src_fixate):
* gst/videotestsrc/gstvideotestsrc.c:
(gst_videotestsrc_src_fixate):
* sys/oss/gstosssink.c: (gst_osssink_sink_fixate):
* sys/ximage/ximagesink.c: (gst_ximagesink_fixate):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_fixate):
2004-01-04 23:46:39 +00:00
David Schleef
2936894898 Fix silly typo
Original commit message from CVS:
Fix silly typo
2004-01-02 10:02:37 +00:00
David Schleef
84dc963101 Negotiation fixes
Original commit message from CVS:
Negotiation fixes
2004-01-02 07:25:10 +00:00
David Schleef
3fee320b5d Change gst_pad_proxy_link() to gst_pad_try_set_caps()
Original commit message from CVS:
Change gst_pad_proxy_link() to gst_pad_try_set_caps()
2003-12-31 08:41:48 +00:00
David Schleef
e095323df1 Negotiation fixes.
Original commit message from CVS:
Negotiation fixes.
2003-12-31 08:02:04 +00:00
Benjamin Otte
03f064d017 gst/sine/gstsinesrc.c: Fix sinesrc segfaulting
Original commit message from CVS:
2003-12-29  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* gst/sine/gstsinesrc.c: (gst_sinesrc_init), (gst_sinesrc_get):
Fix sinesrc segfaulting
2003-12-29 13:51:21 +00:00
Jeremy Simon
e728ac80d1 Fix warnings
Original commit message from CVS:
Fix warnings
2003-12-27 19:37:17 +00:00
David Schleef
651a9bf44e gst/volume/gstvolume.c: Proxy getcaps.
Original commit message from CVS:
* gst/volume/gstvolume.c: (volume_init): Proxy getcaps.
* sys/oss/gstosssink.c: (gst_osssink_init),
(gst_osssink_sink_fixate): Add fixate function.
2003-12-24 03:31:06 +00:00
Benjamin Otte
00e3d21803 gst/volume/: Reenable volume element and fix to work with new caps stuff.
Original commit message from CVS:
2003-12-22  Benjamin Otte  <in7y118@public.uni-hamburg.de>

* gst/volume/Makefile.am:
* gst/volume/gstvolume.c: (volume_connect), (volume_parse_caps),
(volume_base_init), (volume_init):
Reenable volume element and fix to work with new caps stuff.
Rhythmbox needs this.
2003-12-22 21:06:03 +00:00
David Schleef
3b60021408 Merge CAPS branch
Original commit message from CVS:
Merge CAPS branch
2003-12-22 01:47:09 +00:00
Ronald S. Bultje
31b52089cc configure.ac: Improve mpeg2enc detection. This is for distributions that do ship mjpegtools, but without mpeg2enc. Al...
Original commit message from CVS:
2003-12-21  Ronald Bultje  <rbultje@ronald.bitfreak.net>

* configure.ac:
Improve mpeg2enc detection. This is for distributions that do
ship mjpegtools, but without mpeg2enc. Also does object check
for might there ever be ABI incompatibility.
* ext/mpeg2enc/gstmpeg2enc.cc:
Add Andrew as second maintainer (he's helping me), and also add
an error if no caps was set. This happens if I pull before capsnego
and that's something I should solve sometime else.
* gst/matroska/matroska-demux.c:
(gst_matroska_demux_parse_blockgroup):
Fix time parsing.
* gst/matroska/matroska-mux.c: (gst_matroska_mux_audio_pad_link),
(gst_matroska_mux_track_header):
Add caps to templates.
* gst/mpegaudioparse/gstmpegaudioparse.c: (mp3_sink_factory):
Add mpegversion=1 to prevent confusion with MPEG/AAC.
* gst/mpegstream/gstmpegdemux.c:
Remove layer since it causes warnings about unfixed caps.
* gst/videotestsrc/gstvideotestsrc.c: (gst_videotestsrc_get):
Fix obvious typo (we error out if caps were set, we should of
course error out if *no* caps were set).
* sys/oss/gstosselement.c: (gst_osselement_convert):
Fix format conversion, we confused bits/bytes.
* sys/oss/gstosselement.h:
Improve documentation for 'bps'.
* sys/v4l/TODO:
Remove stuff about plugins that need removing - this was done
ages ago.
* sys/v4l/gstv4lmjpegsrc.c: (gst_v4lmjpegsrc_init),
(gst_v4lmjpegsrc_src_convert), (gst_v4lmjpegsrc_src_query):
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_init), (gst_v4lsrc_src_convert),
(gst_v4lsrc_src_query):
* sys/v4l2/gstv4l2src.c: (gst_v4l2src_init),
(gst_v4l2src_src_convert), (gst_v4l2src_src_query):
Add get_query_types(), get_formats() and query() functions.
2003-12-21 18:44:34 +00:00
Thomas Vander Stichele
9e40c6c920 fix header define
Original commit message from CVS:
fix header define
2003-12-19 14:38:30 +00:00
Benjamin Otte
abc0da96ef make get_id3v1 work
Original commit message from CVS:
make get_id3v1 work
2003-12-15 03:35:00 +00:00
Ronald S. Bultje
99e7283568 Implement query function and use GST_BUFFER_DURATION
Original commit message from CVS:
Implement query function and use GST_BUFFER_DURATION
2003-12-14 21:25:32 +00:00
Ronald S. Bultje
2242dec500 Use filtered caps for format detection, and use GST_BUFFER_DURATION
Original commit message from CVS:
Use filtered caps for format detection, and use GST_BUFFER_DURATION
2003-12-14 21:23:57 +00:00
Thomas Vander Stichele
3e1b87c5ad distcheck fixes
Original commit message from CVS:
distcheck fixes
2003-12-14 19:50:00 +00:00
Ronald S. Bultje
f4cc065738 Implement query() function implementation in sinesrc and fix up paused-ready-paused handling
Original commit message from CVS:
Implement query() function implementation in sinesrc and fix up paused-ready-paused handling
2003-12-14 16:15:49 +00:00
Benjamin Otte
78ddfc5a33 removed GST_*_CAST. Disabling of type checking is done in glib.
Original commit message from CVS:
removed GST_*_CAST. Disabling of type checking is done in glib.
2003-12-13 16:59:51 +00:00
Thomas Vander Stichele
c7e0d8d351 distcheck fixes
Original commit message from CVS:
distcheck fixes
2003-12-08 23:41:53 +00:00
Christophe Fergeau
9f8cc91227 Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_buffer. This was preventing the ...
Original commit message from CVS:
Changed a >= test to a > on the input buffer size in gst_tag_list_from_vorbiscomment_buffer. This was preventing the parsing of vorbiscomments not ending with a sync byte (which seems to happen in flac files)
2003-12-08 22:07:57 +00:00
Thomas Vander Stichele
8b84e06993 distchekc fix
Original commit message from CVS:
distchekc fix
2003-12-08 21:55:35 +00:00
Andy Wingo
80fece4f4b remove copyright field from plugins
Original commit message from CVS:
remove copyright field from plugins
2003-12-04 10:37:39 +00:00
David Schleef
5a23c64e9b Fix c99-ism
Original commit message from CVS:
Fix c99-ism
2003-11-30 20:46:41 +00:00
Christophe Fergeau
c3328094e8 Use new tagging stuff to read and write flac metadata. Only handles vorbiscomment tags, and not (older) id3v2 tags.
Original commit message from CVS:
Use new tagging stuff to read and write flac metadata. Only handles vorbiscomment tags, and not (older) id3v2 tags.
2003-11-28 13:04:21 +00:00
David Schleef
40ea47fa69 Change everyone to video/x-msvideo
Original commit message from CVS:
Change everyone to video/x-msvideo
2003-11-27 21:48:40 +00:00
Iain Holmes
7e11de332c m4a typefind function.
Original commit message from CVS:
m4a typefind function.
We think the mimetype is audio/x-m4a, thats what rhythmbox wants
but there's also sources to say it could be audio/mp4 or audio/MP4A-LATM
2003-11-27 14:52:45 +00:00
Christophe Fergeau
4ffadb378e Made gst_vorbis_tag_add public
Original commit message from CVS:
Made gst_vorbis_tag_add public
2003-11-26 23:17:50 +00:00
Christophe Fergeau
44ef75e2e7 Renamed gstmp3tag.c to gstid3tag.c, changed application/x-vorbis to audio/x-vorbis
Original commit message from CVS:
Renamed gstmp3tag.c to gstid3tag.c, changed application/x-vorbis to audio/x-vorbis
2003-11-25 21:24:03 +00:00
Benjamin Otte
788acc4917 tagging stuff and build fixes. In detail:
Original commit message from CVS:
tagging stuff and build fixes. In detail:
- make gdk-pixbuf loader work when distchecking
- fix invalid syntax in ffmpeg Makefile. wildcards for EXTRA_DIST are not allowed. This broke builds where distdir != srcdir
- fix ffmpeg cvs grabbing when srcdir != distdir
- new id3tag plugin for id3 tag reading/writing (uses mad's libid3tag)
- mad and libid3tag require mad/libid3tag v0.15. Fixed configure to require that
- added ogg demuxer in ext/ogg. The demuxer does not handle events yet. Especially getting seeking right will require some effort or code copying from libvorbis.
- added raw vorbis detection to typefinding. oggdemux requires a typefind function to detect its contents.
- tags plugin in gst/tags. Provides API in <gst/tags/gsttagediting.h>. API includes tag matching GStreamer <=> ID3 and GStreamer <=> vorbis and writing/reading vorbiscomments or ID3v1 tags. Also included is a simple vorbiscomment reader/writer. Writing will not really work though until someone writes oggmux.
- various build fixes. Mostly missing (DIST)CLEANFILES.
- vorbisenc handles tag writing.

Now it's YOUR turn to fix and write more plugins that handle writing/reading of tags. :)
2003-11-24 04:08:48 +00:00
Christophe Fergeau
b138134c9a Properly detects shn files with no seek tables at the end
Original commit message from CVS:
Properly detects shn files with no seek tables at the end
2003-11-23 00:33:15 +00:00
Benjamin Otte
3a3ee814aa make sinesrc error out on caps nego failures
Original commit message from CVS:
make sinesrc error out on caps nego failures
2003-11-22 01:06:36 +00:00
Leif Johnson
736153ab06 + checking in plugin category changes
Original commit message from CVS:
+ checking in plugin category changes
2003-11-16 22:02:21 +00:00
Benjamin Otte
e410f1a47b unify common typefind functions
Original commit message from CVS:
unify common typefind functions
There are now _START_WITH and _RIFF macros to register types that start with some bytes or are a RIFF type.
Implement detection of compressed types (compress, gzip, bzip2) with those
2003-11-14 22:12:56 +00:00
Benjamin Otte
908cbecf56 use existing data in mp3 when available
Original commit message from CVS:
use existing data in mp3 when available
2003-11-12 02:58:06 +00:00
David Schleef
4483376c6d Fix caps negotiation in _getcaps and _link functions. Should be completely symmetric now.
Original commit message from CVS:
Fix caps negotiation in _getcaps and _link functions.  Should be
completely symmetric now.
2003-11-11 05:35:31 +00:00
Ronald S. Bultje
9bd75f89b7 Two fixes. The first sets inited to TRUE when we're going into passthrough mode (else, capsnego succeeds and the chai...
Original commit message from CVS:
Two fixes. The first sets inited to TRUE when we're going into passthrough mode (else, capsnego succeeds and the chain() function warns that inited != TRUE), and the second check for validity of caps on src side that were entered on sink side before applying. Else, caps1 could be NULL which causes a segfault.
2003-11-10 13:56:25 +00:00
Ronald S. Bultje
94ff8fbb81 Two workarounds added for gcc-2.9x compatibility. The warnigns are wrong, because these variables will logically neve...
Original commit message from CVS:
Two workarounds added for gcc-2.9x compatibility. The warnigns are wrong, because these variables will logically never be used without being initialized, but it complains nevertheless so we should fix it.
2003-11-09 13:43:54 +00:00
Ronald S. Bultje
3f9d4cbd08 Remove all config.h includes from header files, add it to each source file and remove duplicate config.h includes fro...
Original commit message from CVS:
Remove all config.h includes from header files, add it to each source file and remove duplicate config.h includes from several source files
2003-11-07 12:47:02 +00:00
David Schleef
084a9a35de add config.h
Original commit message from CVS:
add config.h
2003-11-06 22:18:56 +00:00
Jan Schmidt
e4484d681d It was the license disappeared out of the element details, not the category :)
Original commit message from CVS:
It was the license disappeared out of the element details, not the category :)
2003-11-06 08:43:24 +00:00
David Schleef
40ed06289e Add 'PICT' as possible qt atom type
Original commit message from CVS:
Add 'PICT' as possible qt atom type
2003-11-06 03:29:36 +00:00
David Schleef
30e24a0e90 Added mpeg/video video stream typefinding
Original commit message from CVS:
Added mpeg/video video stream typefinding
2003-11-06 02:29:30 +00:00
David Schleef
2ea76a320c Add 'pnot' as a valid atom name in quicktime
Original commit message from CVS:
Add 'pnot' as a valid atom name in quicktime
2003-11-06 00:06:03 +00:00
Benjamin Otte
c53062c038 gst_caps_get requires a NULL at the end
Original commit message from CVS:
gst_caps_get requires a NULL at the end
2003-11-04 18:10:36 +00:00