Alessandro Decina
718837d914
osxvideosink: add code to optionally run the cocoa main runloop in a separate thread
...
Add a little hack to run the cocoa main runloop from a separate thread _when_
the main runloop is not being run (which means that the app doesn't use cocoa).
Runloops are thread specific, so the hack boils down to getting the runloop for
the main thread and setting it as the runloop for our dedicated thread.
2012-05-24 14:35:59 +02:00
Alessandro Decina
e3cba62b7e
osxvideosink: reset app_started to FALSE when shutting down
2012-05-24 14:35:55 +02:00
Alessandro Decina
645b37e80a
osxvideosink: rename cocoa runloop helper funcs
2012-05-24 14:35:51 +02:00
Alessandro Decina
7f576b923a
osxvideosink: don't create application menus
2012-05-24 14:35:46 +02:00
Andoni Morales Alastruey
a3cf0ab5f5
osxvideosink: reset the embed property for backward compatilibity
2012-05-24 14:35:42 +02:00
Andoni Morales Alastruey
7cc93e9195
osxvideosink: fix navigation when force-aspect-ratio is activated
2012-05-24 14:35:37 +02:00
Andoni Morales Alastruey
fd19abf9ee
osxvideosink: add force-aspect-ratio property
2012-05-24 14:35:32 +02:00
Andoni Morales Alastruey
9b8bfe9b9e
osxvideosink: start internal window if no view is provided
2012-05-24 14:35:27 +02:00
Andoni Morales Alastruey
ba5d55dd69
osxvideosink: implement the navigation interface
2012-05-24 14:35:21 +02:00
Andoni Morales Alastruey
088bc6b056
osvideosink: create, destroy, resize and draw from the main thread
2012-05-24 14:35:16 +02:00
Peter Seiderer
65a28698db
v4l2src: fix v4l2_std_id logging
...
input.std is of type v4l2_std_id which is defined as 64-bit unsigned integer.
Casting to uint means the higher bits, wich are used for the private video
standards of the TI video capture/display driver for example, are lost.
2012-05-09 15:12:28 +01:00
Руслан Ижбулатов
cb4f470c7e
waveform: No more gstinterfaces
...
Fixes #675319
2012-05-03 09:33:29 +02:00
Руслан Ижбулатов
ccc0c9c313
directsound: No more gstinterfaces
...
Fixes #675319
2012-05-03 09:33:29 +02:00
Sebastian Dröge
982148c07c
v4l2src: Update for basesrc API changes
2012-05-01 13:33:46 +02:00
Wim Taymans
a473750350
v4l2: improve timestamp code
...
Sample the pipeline clock and device clock closer to eachother to reduce jitter.
Don't subtract the frame duration from the timestamp when we can use the device
timestamps.
Assume a delay of 1 frame in read-write mode.
2012-04-25 09:41:46 +02:00
Wim Taymans
46045316ce
v4l2: use driver timestamps
...
Use the drive timestamps for timestamping outgoing buffers.
2012-04-24 12:37:33 +02:00
Wim Taymans
eecb9a96a6
v4l2: Improve buffer management
...
Query the amount of available buffers when doing set_config(). This allows us to
configure the parent bufferpool with the number of buffers to preallocate.
Keep track of the provided allocator and use it when we need to allocate a
buffer in RW mode.
When we are can not allocate the requested max_buffers amount of buffers, make
sure we keep 2 buffers around in the pool and copy them into an output buffer.
This makes sure that we always have a buffer to capture into. We also need to
detect those copied buffers and unref them when they return to the pool.
2012-04-23 18:10:33 +02:00
Wim Taymans
713ddbf541
v4l2: free the queued buffers
...
Only free the queued buffers that we keep track of in our buffer array. for rw
io-mode, we do allocate buffers but we don't keep track of them in the buffer
array.
2012-04-23 18:10:33 +02:00
Wim Taymans
5d7d4e0d9b
v4l2: mark memory as no-share
...
We don't support sharing our mmapped memory so mark it as NO_SHARE.
2012-04-23 18:10:33 +02:00
Wim Taymans
9fe11d0d11
v4l2: remove old unused file
2012-04-23 18:10:33 +02:00
Wim Taymans
37e7a41771
v4l2: remove unused function
2012-04-23 18:10:33 +02:00
Mart Raudsepp
8719375be7
docs: Add Since tag for new GstV4l2Src::prepare-format signal
2012-04-23 11:24:19 +02:00
Mark Nauwelaerts
a5ff454e6a
oss4: port to 0.11
2012-04-20 18:18:54 +02:00
Mark Nauwelaerts
c4c3736e1a
oss: port to 0.11
2012-04-20 18:18:54 +02:00
Wim Taymans
f08bab4e86
v4l2: update for video api change
2012-04-19 14:16:01 +02:00
Wim Taymans
85d4dde9d1
v4l2: fix compilation on older v4l2
...
Fix compilation on systems where the H264 format is not defined.
2012-04-19 12:38:58 +02:00
Sebastian Dröge
04b70571e5
video: Update for libgstvideo API changes
2012-04-19 12:20:59 +02:00
Youness Alaoui
09dabd4be6
v4l2src: Allow mpeg-ts cameras to negociate format
...
This removes an ugly hack until the reason for the hack can be documented
2012-04-19 10:31:18 +02:00
Sebastian Dröge
e7a76badc5
v4l2src: Fix merge
2012-04-19 09:50:25 +02:00
Sebastian Dröge
deb7cdcdda
v4l2src: Rename pre-set-format signal to prepare-format
2012-04-19 09:50:01 +02:00
Youness Alaoui
a63451ecd7
v4l2src: Add H264 encoded stream support to the caps
...
This is not enough to properly support H264 cameras, but it will
allow an H264 stream to be generated by v4l2src using the default
settings of the camera. If used with the pre-set-format signal, the
H264 encoder can be fully configured.
Conflicts:
sys/v4l2/gstv4l2object.c
2012-04-19 09:49:33 +02:00
Youness Alaoui
06d64c7792
v4l2src: Adding a pre-set-format signal
...
In order to support UVC H264 encoding cameras, an H264 Probe&Commit
must happen before the normal v4l2 set-format. This new signal is
meant to allow an external application or bin to do it.
It also serves to expose the file descriptor used by v4l2src in case
some custom ioctls need to be called.
Conflicts:
sys/v4l2/Makefile.am
sys/v4l2/gstv4l2src.c
sys/v4l2/v4l2src_calls.c
2012-04-19 09:45:49 +02:00
Víctor Manuel Jáquez Leal
8c5d8b52ea
v4l2: ensure autogenerated files are created
...
The tuner marshal and enumtypes are autogenerated, and they need
to be created before the compilation of gstv4l2tuner.c
This patch adds the automake instruction for ensuring the
autogeneration of those files previous the compilation.
2012-04-13 17:13:22 +02:00
Sebastian Dröge
d99eb6d2cb
Update everything for the removal of the interface library and mixer/tuner interfaces
2012-04-13 13:15:11 +02:00
Руслан Ижбулатов
f0685dd026
Remove unused variable
...
Fixes #673859
2012-04-10 22:41:04 +01:00
Tim-Philipp Müller
e09ae5736d
Use new gst_element_class_set_static_metadata()
2012-04-10 00:51:41 +01:00
Sebastian Dröge
aa2cd462da
gst: Update for GST_PLUGIN_DEFINE() API changes
2012-04-05 17:36:38 +02:00
Sebastian Dröge
5cdd49bf25
gst: Update versioning
2012-04-04 14:37:47 +02:00
Wim Taymans
3d61d12e03
update for buffer api change
2012-03-30 18:15:34 +02:00
Wim Taymans
e310ee8218
caps: improve caps handling
...
Avoid caps copy and leaks
2012-03-27 16:42:41 +02:00
Wim Taymans
098d8ceae7
v4l2: update for get_param
...
Remove const from the GstCaps.
Plug some GstStructure leaks
2012-03-27 12:44:46 +02:00
Wim Taymans
01838ff975
v4l2src: don't error in shutdown
...
Don't log with the ERROR category when we are stopping because we are shutting
down.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=672824
2012-03-26 16:00:42 +02:00
Wim Taymans
cfe58e7156
v4l2: fix latency
2012-03-26 15:51:28 +02:00
Wim Taymans
fa436c0799
v4l2: called base class start
...
Chain up to the base class start method so that metadata is properly tagged.
Remove an unused variable.
fixes: https://bugzilla.gnome.org/show_bug.cgi?id=672813
2012-03-26 15:33:59 +02:00
Wim Taymans
c44cd8f55b
Merge branch 'master' into 0.11
...
unport gdkpixbuf
not merged: https://bugzilla.gnome.org/show_bug.cgi?id=654850
Conflicts:
docs/plugins/Makefile.am
docs/plugins/gst-plugins-good-plugins-docs.sgml
docs/plugins/gst-plugins-good-plugins-sections.txt
docs/plugins/gst-plugins-good-plugins.hierarchy
docs/plugins/inspect/plugin-avi.xml
docs/plugins/inspect/plugin-png.xml
ext/flac/gstflacdec.c
ext/flac/gstflacdec.h
ext/libpng/gstpngdec.c
ext/libpng/gstpngenc.c
ext/speex/gstspeexdec.c
gst/audioparsers/gstflacparse.c
gst/flv/gstflvmux.c
gst/rtp/gstrtpdvdepay.c
gst/rtp/gstrtph264depay.c
2012-03-22 11:53:24 +01:00
Wim Taymans
ced47580b7
update for bufferpool changes
2012-03-15 22:11:17 +01:00
Wim Taymans
f3a770a20c
update for allocation query changes
2012-03-15 20:37:56 +01:00
Wim Taymans
6ed3bc109b
update for bufferpool api change
2012-03-15 14:06:40 +01:00
Wim Taymans
ecaea36c3d
update for memory api changes
2012-03-15 13:36:17 +01:00
Wim Taymans
751fcf035b
take padding into account
2012-03-14 19:56:56 +01:00
Wim Taymans
80dca40c35
fix for _do_simplify changes
2012-03-12 10:43:57 +01:00
Wim Taymans
a32d944a38
fix for caps api changes
2012-03-11 19:06:37 +01:00
Sebastian Dröge
9d5e5ea553
ximagesrc: Fix 'comparison of unsigned expression >= 0 is always true'
...
This variable can never be below zero anyway.
2012-03-06 14:23:05 +01:00
Mark Nauwelaerts
26dd999b68
Merge branch 'master' into 0.11
...
Conflicts:
ext/wavpack/gstwavpackparse.c
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h
sys/v4l2/gstv4l2videooverlay.c
2012-03-05 13:29:59 +01:00
Wim Taymans
2adc948d18
x-raw-bayer -> x-bayer
2012-03-05 12:43:17 +01:00
Oleksij Rempel (Alexey Fisher)
a83d2f7047
v4l2sink: don't use deprecated XKeycodeToKeysym
...
https://bugzilla.gnome.org/show_bug.cgi?id=671299
Signed-off-by: Oleksij Rempel (Alexey Fisher) <bug-track@fisher-privat.net>
2012-03-05 11:34:36 +00:00
Wim Taymans
1dada15ccf
ximage: use new style caps
2012-03-05 12:03:01 +01:00
Tim-Philipp Müller
6f707fcbca
v4l2: clear DISCONT flag when recycling buffers into the buffer pool
...
The base class may have set the DISCONT flag on the first buffer pushed
out. We need to clear that when recycling buffers back into the buffer
pool, otherwise we constantly push out buffers with the discont flag
set, which might upset downstream elements, esp. for compressed
formats like mpeg-ts.
2012-03-03 13:07:45 +00:00
Oleksij Rempel (Alexey Fisher)
4cd9255f0a
v4l2src: fix v4l2_munmap() for compressed formats
...
Make sure we always call munmap() with the same size we called mmap()
with before.
Current v4l2src uses the same structure for VIDIOC_QUERYBUF, VIDIOC_QBUF
and v4l2_munmap calls. The problem is that the video buffer size (length)
may vary for compressed or emulated bufs. VIDIOC_QBUF will change it if
we pass the pointer of a v4l2_buffer. This is why we should avoid using
same variable for mmap and video buffers.
https://bugzilla.gnome.org/show_bug.cgi?id=671126
2012-03-03 13:07:40 +00:00
Sebastian Dröge
3299f39179
mixer/colorbalance: Update for API changes
2012-03-02 10:13:08 +01:00
Mark Nauwelaerts
f189f62b13
Merge branch 'master' into 0.11
...
Conflicts:
ext/wavpack/gstwavpackenc.c
tests/check/elements/audioiirfilter.c
tests/examples/v4l2/probe.c
2012-03-01 11:29:50 +01:00
Wim Taymans
9c789aa434
update for metadata API changes
2012-02-29 17:26:01 +01:00
Wim Taymans
dda3219e4c
update for metadata tags
2012-02-28 11:38:59 +01:00
Edward Hervey
9beda57c3a
Suppress deprecation warnings in selected files, for g_value_array_* mostly
2012-02-27 14:47:25 +01:00
Wim Taymans
c17aa1565a
v4l2: use public api
...
instead of poking into the private structures of the base class
2012-02-27 09:21:27 +01:00
Wim Taymans
0ab5677107
update for metadata change
2012-02-24 10:26:26 +01:00
Wim Taymans
ca9532ccc5
update for new memory api
2012-02-22 02:10:33 +01:00
Wim Taymans
6623ab258b
Merge branch 'master' into 0.11
2012-02-16 14:23:50 +01:00
Gary Ching-Pang Lin
c1c858f273
v4l2src: failure to query some optional controls is not a fatal error
...
Don't post a (fatal) error message on the bus just because we
failed to query some control. Fixes issue with built-in
Suyin Corp webcam for HP notebook (usbid 064e:e28a) on
OpenSuse 12.1, where querying red/blue balance fails.
https://bugzilla.gnome.org/show_bug.cgi?id=670197
2012-02-16 13:10:47 +00:00
Tuukka Pasanen
ef37bb48bc
v4l2src: fix for webcamstudio vloopback
...
Because vlooback emits 25 - ENOTTY and no EINVAL v4l2src thought it
can't handle this and does not work.
https://bugzilla.gnome.org/show_bug.cgi?id=669455
2012-02-16 12:59:10 +00:00
Wim Taymans
9365f12d6e
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
2012-02-08 16:43:30 +01:00
Raimo Järvi
697dcc60b4
directsoundsink: Fix compiling
...
https://bugzilla.gnome.org/show_bug.cgi?id=669607
2012-02-07 23:20:19 +00:00
Raimo Järvi
b7b3161c26
waveformsink: Port to 0.11
...
https://bugzilla.gnome.org/show_bug.cgi?id=669612
2012-02-07 22:56:47 +00:00
Andoni Morales Alastruey
83090f6530
direcsoundsink: Port element to 0.11
2012-01-27 18:26:18 +01:00
Sebastian Dröge
0b517ce9fb
Merge branch '0.11' of ssh://git.freedesktop.org/git/gstreamer/gst-plugins-good into 0.11
2012-01-25 12:49:34 +01:00
Sebastian Dröge
10554b271f
Merge branch 'master' into 0.11
...
Conflicts:
ext/flac/gstflacdec.c
ext/jpeg/gstjpegenc.c
ext/pulse/pulsesink.c
sys/v4l2/gstv4l2src.c
2012-01-25 12:49:11 +01:00
Wim Taymans
b4630dd3e0
more memory API porting
2012-01-25 12:30:29 +01:00
Tim-Philipp Müller
7cb9b7ab9d
Use new GLib API unconditionally
2012-01-22 23:15:19 +00:00
Wim Taymans
1584806634
port to new gthread API
2012-01-19 11:33:53 +01:00
Vincent Penquerc'h
f799fb2c90
oss4: fix caps leaks
2012-01-13 17:43:49 +00:00
Vincent Penquerc'h
b0608128b1
v4l2src: fix caps leak
2012-01-13 17:25:59 +00:00
Stig Sandnes
ffe010ee4d
osxvideo: Fix leak of NSOpenGLPixelFormat object
...
https://bugzilla.gnome.org/show_bug.cgi?id=667818
2012-01-13 10:14:34 +00:00
Havard Graff
150403ab13
v4l2src: Don't assert when the interface is not implemented.
...
Simply return FALSE instead.
https://bugzilla.gnome.org/show_bug.cgi?id=667817
2012-01-13 10:07:20 +00:00
Raimo Järvi
e886ef8f5b
waveformsink: Fix mingw warnings
...
https://bugzilla.gnome.org/show_bug.cgi?id=667719
2012-01-13 09:43:47 +00:00
Sebastian Dröge
93e3ed5a86
Merge branch 'master' into 0.11
...
Conflicts:
ext/cairo/gsttextoverlay.c
ext/pulse/pulseaudiosink.c
gst/audioparsers/gstaacparse.c
gst/avi/gstavimux.c
gst/flv/gstflvmux.c
gst/interleave/interleave.c
gst/isomp4/gstqtmux.c
gst/matroska/matroska-demux.c
gst/matroska/matroska-mux.c
gst/matroska/matroska-mux.h
gst/matroska/matroska-read-common.c
gst/multifile/gstmultifilesink.c
gst/multipart/multipartmux.c
gst/shapewipe/gstshapewipe.c
gst/smpte/gstsmpte.c
gst/udp/gstmultiudpsink.c
gst/videobox/gstvideobox.c
gst/videocrop/gstaspectratiocrop.c
gst/videomixer/videomixer.c
gst/videomixer/videomixer2.c
gst/wavparse/gstwavparse.c
po/ja.po
po/lv.po
po/sr.po
tests/check/Makefile.am
tests/check/elements/qtmux.c
tests/check/elements/rgvolume.c
2012-01-10 14:32:32 +01:00
Sebastian Dröge
177dd68d06
oss: Port to the new multichannel caps and the raw audio caps interleaved field
2012-01-05 10:30:30 +01:00
Tim-Philipp Müller
2be912cb45
waveformsink: fix compiler warnings with MingW
...
https://bugzilla.gnome.org/show_bug.cgi?id=666485
2011-12-27 22:59:03 +00:00
Yaakov Selkowitz
e72b55b6ac
waveform: add autotools bits for waveform plugin
...
https://bugzilla.gnome.org/show_bug.cgi?id=666485
2011-12-26 22:22:59 +00:00
Wim Taymans
4b8975f867
update for removed property probe
2011-12-21 11:59:46 +01:00
Wim Taymans
4f42f58565
v4l2: update for new interlaced caps
2011-12-19 19:03:52 +01:00
Tim-Philipp Müller
330d984288
Use g_thread_try_new() instead of g_thread_crate() with newer glib versions
2011-12-12 09:46:27 +00:00
Tim-Philipp Müller
66f6e12888
Work around deprecated thread API in glib master
...
Add private replacements for deprecated functions such as
g_mutex_new(), g_mutex_free(), g_cond_new() etc., mostly
to avoid the deprecation warnings. We'll change these
over to the new API once we depend on glib >= 2.32.
2011-12-12 09:46:27 +00:00
Tim-Philipp Müller
668e15598b
Merge remote-tracking branch 'origin/master' into 0.11
...
Conflicts:
sys/v4l2/gstv4l2object.c
2011-12-08 01:28:26 +00:00
Vincent Penquerc'h
687d6138d1
v4l2src: do not ignore the highest frame interval
...
https://bugzilla.gnome.org/show_bug.cgi?id=665387
2011-12-07 13:41:12 +00:00
Vincent Penquerc'h
2b0a001d0d
v4l2src: do not ignore the largest resolution
...
The 'max' value isn't an STL style "one after the end" bound,
but the largest allowed value.
https://bugzilla.gnome.org/show_bug.cgi?id=665387
2011-12-07 13:41:12 +00:00
Tim-Philipp Müller
87ba312e19
v4l2: replace deprecated GST_CLASS_LOCK
2011-12-05 12:15:21 +00:00
Vincent Penquerc'h
1e974b1581
v4l2src: add a comment about a "hidden" assumption on rank values
...
https://bugzilla.gnome.org/show_bug.cgi?id=665387
2011-12-02 14:44:47 +00:00
Wim Taymans
710491109d
fix for moved interfaces
2011-11-29 19:10:58 +01:00
Vincent Penquerc'h
c0e101e93f
various: fix pad template leaks
...
https://bugzilla.gnome.org/show_bug.cgi?id=662664
2011-11-28 13:30:27 +00:00
Tim-Philipp Müller
736a484129
More printf format warning fixes
2011-11-22 01:40:39 +00:00
Matej Knopp
1e5dd9e315
Fix printf format compiler warnings on OS X / 64bit
...
https://bugzilla.gnome.org/show_bug.cgi?id=662615
2011-11-22 01:28:22 +00:00
Wim Taymans
07cc855b24
Merge branch 'master' into 0.11
...
Conflicts:
ext/speex/gstspeexenc.c
gst/rtpmanager/rtpsession.c
2011-11-17 17:17:11 +01:00
Wim Taymans
797523efbd
_peer_get_caps() -> _peer_query_caps()
2011-11-15 18:04:44 +01:00
Wim Taymans
b2d508ac40
update for _get_caps() -> _query_caps()
2011-11-15 18:04:44 +01:00
Sjoerd Simons
e7ae593993
v4l2: Set pixel-aspect-ratio to 1/1
...
We don't currently support setting the pixel-aspect-ratio from V4L2. So
simply set it to be 1/1 in the caps to prevent negotiation failures when
fixating to weird values (e.g. when the downstream caps has
pixel-aspect-ratio = [ MIN, MAX ] )
https://bugzilla.gnome.org/show_bug.cgi?id=663580
2011-11-14 11:43:41 +01:00
Tim-Philipp Müller
c27bbe4be2
Update for GstURIHandler get_protocols() changes
2011-11-13 23:44:44 +00:00
Tim-Philipp Müller
a150d1e734
soup, pushfile, rtsp, udp, v4l2: update for GstURIHandler API changes
2011-11-13 18:50:51 +00:00
Wim Taymans
88e398b0ea
update for removed fixate function
2011-11-10 11:03:18 +01:00
Stefan Sauer
fb162c8eb4
controller: port to new controller location and api
2011-11-04 20:15:48 +01:00
Wim Taymans
b1ef7e8a86
update for meta api change
2011-11-02 09:06:37 +01:00
Wim Taymans
9a8a8e72c8
structure: fix for api update
2011-11-02 09:06:37 +01:00
Tim-Philipp Müller
d18a578ba4
rtpmanager, v4l2: fix compiler warnings after gst_caps_new_simple() change
2011-10-28 09:06:41 +01:00
Wim Taymans
fc4684f4c6
fix compilation
2011-10-27 16:03:17 +02:00
Stefan Sauer
2468492f02
interfaces: clean up the use of iface and class/klass
2011-10-21 14:58:41 +02:00
Wim Taymans
586ef0babd
Merge branch 'master' into 0.11
...
Conflicts:
ext/speex/gstspeexdec.c
ext/speex/gstspeexenc.c
gst/isomp4/atoms.c
gst/isomp4/gstqtmux.c
2011-10-06 12:23:39 +02:00
Stas Sergeev
73fac4e5bc
v4l2, ximagesrc: fix some printf format compiler warnings
...
https://bugzilla.gnome.org/show_bug.cgi?id=660150
2011-09-30 18:05:32 +01:00
Wim Taymans
87fbd1e784
Merge branch 'master' into 0.11
...
Conflicts:
common
ext/pulse/pulsesink.c
ext/soup/gstsouphttpclientsink.c
gst/audioparsers/gstaacparse.c
gst/audioparsers/gstac3parse.c
gst/rtp/gstrtph264depay.c
gst/rtpmanager/gstrtpjitterbuffer.c
gst/rtpmanager/rtpjitterbuffer.c
gst/rtsp/gstrtspsrc.c
sys/ximage/gstximagesrc.c
2011-09-28 12:44:59 +02:00
Vincent Penquerc'h
82927d6bdd
ximagesrc: add xid and xname properties to allow capturing a particular window
...
A particular window may be selected using the new xid (X-Window
XID, eg a pointer) and xname (window title) properties. If both
are specified, the XID is used in preference, falling back to
xname if not found.
Default (if none of xid and xname are specified, or if no such
window is found) is to capture the root window.
https://bugzilla.gnome.org/show_bug.cgi?id=546932
2011-09-20 13:09:35 +01:00
Guillaume Desmottes
06c65418d7
v4l2: use GST_RESOURCE_ERROR_BUSY if v4l2_ioctl fails with EBUSY
...
https://bugzilla.gnome.org/show_bug.cgi?id=658543
2011-09-08 15:04:42 +02:00
Wim Taymans
5b55cf057b
Merge branch 'master' into 0.11
...
Conflicts:
sys/v4l2/v4l2src_calls.c
2011-08-29 13:43:59 +02:00
Wim Taymans
75e153bb13
allocation: fix for vmethod changes
2011-08-26 14:20:49 +02:00
Vincent Penquerc'h
3968dc7688
v4l2src: make this work more than once in a row
...
We used to skip frame rate setup if the camera was already setup
with the requested frame rate. This breaks some cameras though,
causing them to not output data (several models of Thinkpad cameras
have this problem at least).
So, don't skip.
https://bugzilla.gnome.org/show_bug.cgi?id=638300
2011-08-26 10:33:10 +02:00
Wim Taymans
18065ac823
port to new video flags
2011-08-25 16:41:23 +02:00
Wim Taymans
77ad0a1363
port more elements to new audio caps and API
2011-08-19 14:01:45 +02:00
Wim Taymans
44c1589b48
v4l2: improve fixate function
...
Use new core function to fixate a field.
Chain up to parent fixate function.
2011-08-17 17:57:11 +02:00
Wim Taymans
4bb2b140e9
Merge branch 'master' into 0.11
...
Conflicts:
sys/v4l2/v4l2src_calls.c
2011-08-16 18:35:53 +02:00
Vincent Penquerc'h
26993420c0
ximagesrc: clear flags on buffer reuse
...
This will ensure a logically new buffer does not keep flags from
a previous use of that buffer (eg, DISCONT would be set on the first
buffer, and mistakenly kept when reused).
https://bugzilla.gnome.org/show_bug.cgi?id=653709
2011-08-09 10:19:46 +02:00
Vincent Penquerc'h
639abf01f9
v4l2: take care not to change the current format where appropriate
...
Some drivers are buggy are will change the current format when
processing VIDIOC_TRY_FMT. Save and restore the current format
to ensure the format is kept unchanged.
https://bugzilla.gnome.org/show_bug.cgi?id=649067
2011-08-09 09:53:33 +02:00
Tim-Philipp Müller
d5db5ca9be
v4l2: update for GstXOverlay => GstVideoOverlay rename
2011-08-08 15:25:31 +01:00
Sjoerd Simons
8edb15d12f
v4l2src: Use fraction compare util function.
...
Use the fraction compare utility to compare function, not the
handcrafted one. The handcrafted one is buggy as it doesn't take into
account rounding error. For example comparing a framerate of 20/1 on a
camera configured as 30/1 fps would yield true: 1 == (1 * 20)/30 and not
re-configure the camera. Fixes #656104
2011-08-07 16:41:53 +02:00
Wim Taymans
1b1fb68c23
v4l2src: call set_caps method of baseclass
...
Call the baseclass set_caps function to make it send the caps event and
properly trigger the negotiation functions.
2011-08-04 16:35:46 +02:00
Edward Hervey
dc14c1ffc9
v4l2sink: Size variable should be a guint and not a gsize
2011-08-04 13:52:18 +02:00
Wim Taymans
add1cbdbd8
v4l2: activate the pool in fallback
...
When nobody is using our pool, activate it ourselves.
Avoid leaking the buffer array.
Set default pool configuration with caps.
Don't keep current_caps, core does that for us now.
2011-08-04 12:56:47 +01:00
Wim Taymans
4121021bb2
Merge branch 'master' into 0.11
...
Conflicts:
ext/pulse/pulsesink.c
ext/pulse/pulsesrc.c
gst/audioparsers/gstac3parse.c
gst/rtp/gstrtph264depay.c
gst/rtp/gstrtph264pay.c
gst/rtpmanager/gstrtpssrcdemux.c
2011-08-03 18:25:30 +02:00
Tim-Philipp Müller
a1712ad87c
docs: fix two more Since: tags
2011-08-02 23:42:58 +01:00
Wim Taymans
752a6778b2
v4l: change for new API
2011-07-29 17:21:36 +02:00
Wim Taymans
63fc64dd98
v4l2: remove unused variables
...
Use the more specialized type for the bufferpool.
Use the size from the driver as the size of the image to read.
Don't configure the pool when created. This will be done in the setup_allocation
method later or by upstream for sinks.
Remove unused properties and variables. Bufferpool sizes are now configured in
the bufferpool by the elements in the pipeline. We might want to influence the
pool size later somehow.
2011-07-27 16:46:46 +02:00
Wim Taymans
b638bb4735
v4l2bufferpool: remove unused variable
2011-07-27 13:46:09 +02:00
Wim Taymans
f7c500fe9c
v4l2src: add metadata
2011-07-27 13:43:08 +02:00
Wim Taymans
fcfdececce
bufferpool: check for metadata
...
Only add video metadata when it was configured in the pool. Fail if there was no
video metadata configured and the strides are not the default ones.
2011-07-27 13:41:28 +02:00
Wim Taymans
443e9f7c1d
v4l2: add colorspace to debug
2011-07-27 12:41:33 +01:00
Wim Taymans
8c4241427a
v4l2: rename a variable
...
Rename the size variable to sizeimage and fill it with the size that has been
given to use by the v4l2 driver instead of making something up..
2011-07-26 16:15:05 +02:00
Wim Taymans
e43ab9f2cd
v4l2: use new setup_allocation vmethod
2011-07-26 13:18:55 +02:00
Wim Taymans
b2e1532021
v4l2: implement more bits of RW I/O mode
...
Implement the relaese of RW buffers in the pool.
Warn for unsupported write() mode for sinks.
2011-07-26 10:56:07 +01:00
Wim Taymans
be32a6393e
v4l2: improve IO mode error handling
...
Error out when an unsupported IO mode was selected
2011-07-26 10:54:23 +01:00
Wim Taymans
9a8f1c4339
v4l2: remove unused method
2011-07-25 15:51:22 +02:00
Wim Taymans
e6a8718f0c
v4l2: fix flushing start and stop
...
Move the flushing calls to the right place in the bufferpool.
Fix the min and max buffer sizes.
2011-07-25 15:39:18 +02:00
Wim Taymans
0a88ac4c92
v4l2: dequeue buffers when all are queued
...
Prefer to always use the default bufferpool queue for the _acquire function
because it properly supports unblocking when setting inactive etc. As a result,
we need to dequeue buffers and put them back in the bufferpool queue when we
have queued all buffers in the sink.
Rename some variables to more meaningfull names to avoid a problem with
freeing the wrong amount of buffers.
2011-07-25 14:47:05 +01:00
Wim Taymans
b98bc75f47
v4l2: only to STREAMOFF when streaming
...
Only call STREAMOFF when we previously called STREAMON
2011-07-25 10:24:33 +01:00
Wim Taymans
44fa0b9cab
v4l2: handle unsupported formats
2011-07-19 18:20:43 +01:00