platform/upstream/gstreamer.git
13 years agodecklink: improve frame handling
Joshua M. Doe [Thu, 7 Jul 2011 18:34:01 +0000 (14:34 -0400)]
decklink: improve frame handling

Send NEWSEGMENT on start. Send warning instead of error on
dropped frames.

Signed-off-by: David Schleef <ds@schleef.org>
13 years agodecklink: fix debugging in capture.cpp by making category extern
Joshua M. Doe [Thu, 7 Jul 2011 18:20:37 +0000 (14:20 -0400)]
decklink: fix debugging in capture.cpp by making category extern

Signed-off-by: David Schleef <ds@schleef.org>
13 years agodecklink: use mutexes from glib instead of pthread
Joshua M. Doe [Thu, 7 Jul 2011 18:13:00 +0000 (14:13 -0400)]
decklink: use mutexes from glib instead of pthread

Signed-off-by: David Schleef <ds@schleef.org>
13 years agoremovesilence: new plugin
Tiago César Katcipis [Thu, 16 Jun 2011 20:19:49 +0000 (17:19 -0300)]
removesilence: new plugin

Fixes: #597822.
Signed-off-by: David Schleef <ds@schleef.org>
13 years agocamerabin2: Prevent audiosrc from sending undesired eos
Thiago Santos [Sun, 21 Aug 2011 17:41:28 +0000 (14:41 -0300)]
camerabin2: Prevent audiosrc from sending undesired eos

Basesrc derived classes send an eos when they change state
from paused to ready and that breaks video recordings on camerabin2
as it makes the whole audio branch pads flushing.

Prevent it by using a pad probe that only allows the eos to pass
when it is caused by a stop-capture action.

13 years agotests: camerabin2: Use audiotestsrc on tests
Thiago Santos [Sun, 21 Aug 2011 17:07:37 +0000 (14:07 -0300)]
tests: camerabin2: Use audiotestsrc on tests

Use audiotestsrc on tests instead of using the system's default
audiosrc, avoiding any problems that a local audio setup might
have.

13 years agocamerabin2: Use gst_pad_send_event instead of eventfunc macro
Thiago Santos [Thu, 18 Aug 2011 21:27:03 +0000 (18:27 -0300)]
camerabin2: Use gst_pad_send_event instead of eventfunc macro

13 years agotests: camerabin2: Improving tests
Thiago Santos [Sun, 14 Aug 2011 07:41:58 +0000 (04:41 -0300)]
tests: camerabin2: Improving tests

Adding some additional checks for custom camerabin2 messages

Also improves reliability of the tests by waiting for the preview-buffer message.
This message is generated from the preview pipeline, and might arrive later than the
image/video-done from the main camerabin2 pipeline, the tests need to wait for it even
after getting the image/video-done.

13 years agocamerabin2: Avoid assertions when plugin creation fails
Thiago Santos [Thu, 18 Aug 2011 18:12:56 +0000 (15:12 -0300)]
camerabin2: Avoid assertions when plugin creation fails

Capsfilters are created on the constructor and their properties can
be set/get from camerabin2's set/get_property functions. The user with
a broken setup would cause assertions when trying to set/get the
capture caps of this camerabin2.

A proper missing-plugin message will be posted when the user tries to
set camerabin2 to READY state.

13 years agotsmux: remove unnecessary check
Alessandro Decina [Fri, 19 Aug 2011 22:48:20 +0000 (00:48 +0200)]
tsmux: remove unnecessary check

remove an if (best) check where best != NULL has already been checked

13 years agotsbase: reinitiate segment at flush-stop event only
Youness Alaoui [Tue, 16 Aug 2011 19:51:34 +0000 (19:51 +0000)]
tsbase: reinitiate segment at flush-stop event only

13 years agohlsdemux: Set buffer timestamp since we send a TIME segment
Youness Alaoui [Tue, 16 Aug 2011 19:43:08 +0000 (19:43 +0000)]
hlsdemux: Set buffer timestamp since we send a TIME segment

13 years agohlsdemux: Allow bandwidth switching during caching of fragments
Youness Alaoui [Tue, 2 Aug 2011 19:21:47 +0000 (19:21 +0000)]
hlsdemux: Allow bandwidth switching during caching of fragments

13 years agohlsdemux: set the pad's caps before adding it
Youness Alaoui [Tue, 2 Aug 2011 19:21:18 +0000 (19:21 +0000)]
hlsdemux: set the pad's caps before adding it

13 years agoofa: fingerprint creation can fail
Vincent Penquerc'h [Wed, 17 Aug 2011 10:02:12 +0000 (11:02 +0100)]
ofa: fingerprint creation can fail

There does not seem to be a way to retrieve information
about why failure occured, unfortunately.
When failure occurs, do not post a NULL fingerprint tag.

https://bugzilla.gnome.org/show_bug.cgi?id=656641

13 years agoofa: cleanup
Vincent Penquerc'h [Wed, 17 Aug 2011 09:55:59 +0000 (10:55 +0100)]
ofa: cleanup

Avoid repeating casting to GstAudioFilter when one will do
Use object related logging to make it easier to get just the logs we want

https://bugzilla.gnome.org/show_bug.cgi?id=656641

13 years agoofa: do not create fingerprint on EOS if record is FALSE
Vincent Penquerc'h [Wed, 17 Aug 2011 10:07:54 +0000 (11:07 +0100)]
ofa: do not create fingerprint on EOS if record is FALSE

https://bugzilla.gnome.org/show_bug.cgi?id=656641

13 years agovp8enc: Remove unused and useless variable in tags handling
Sebastian Dröge [Thu, 18 Aug 2011 08:39:26 +0000 (10:39 +0200)]
vp8enc: Remove unused and useless variable in tags handling

13 years agobasevideo: Fix locking, especially if both pads have different streaming threads
Sebastian Dröge [Thu, 18 Aug 2011 08:02:50 +0000 (08:02 +0000)]
basevideo: Fix locking, especially if both pads have different streaming threads

13 years agobasevideo: Don't call g_type_class_peek_parent() in class_init
Sebastian Dröge [Thu, 18 Aug 2011 07:42:02 +0000 (07:42 +0000)]
basevideo: Don't call g_type_class_peek_parent() in class_init

This is already done by the GObject boilerplate macro

13 years agoaiffmux: drop data after 4ish GB and moan
Vincent Penquerc'h [Tue, 16 Aug 2011 09:24:37 +0000 (10:24 +0100)]
aiffmux: drop data after 4ish GB and moan

https://bugzilla.gnome.org/show_bug.cgi?id=654278

13 years agoaiffmux: use guint32 for guint32 parameters
Vincent Penquerc'h [Tue, 16 Aug 2011 09:02:59 +0000 (10:02 +0100)]
aiffmux: use guint32 for guint32 parameters

This makes explicit that the range is limited.

https://bugzilla.gnome.org/show_bug.cgi?id=654278

13 years agoaiffmux: avoid integer overflow
Vincent Penquerc'h [Tue, 16 Aug 2011 09:02:11 +0000 (10:02 +0100)]
aiffmux: avoid integer overflow

These values are 32 bits, and width is a multiple of 8.

https://bugzilla.gnome.org/show_bug.cgi?id=654278

13 years agoceltdec: make this compile with git libcelt
Vincent Penquerc'h [Tue, 16 Aug 2011 18:39:40 +0000 (19:39 +0100)]
celtdec: make this compile with git libcelt

celt_mode_info was removed, in favor of a _ctl.

https://bugzilla.gnome.org/show_bug.cgi?id=656686

13 years agoofa: don't crash when there's no data to create a fingerprint from
Vincent Penquerc'h [Tue, 16 Aug 2011 17:34:59 +0000 (18:34 +0100)]
ofa: don't crash when there's no data to create a fingerprint from

Fixes a crash when no data flowed through.

https://bugzilla.gnome.org/show_bug.cgi?id=656641

13 years agompeg4videoparse: Use gst_bit_reader_skip to skip more than 32 bits.
George Kiagiadakis [Tue, 16 Aug 2011 16:47:02 +0000 (19:47 +0300)]
mpeg4videoparse: Use gst_bit_reader_skip to skip more than 32 bits.

GET_BITS is a macro for gst_bit_reader_get_bits_uint32, which cannot
read more than 32 bits and will fail in this case where it is called
to read 79 bits. Since we want to skip those bits, gst_bit_reader_skip
is more appropriate in this case.

13 years agoqtkitvideosrc: get the framerate from caps
Alessandro Decina [Mon, 15 Aug 2011 00:08:14 +0000 (02:08 +0200)]
qtkitvideosrc: get the framerate from caps

...and configure QTKit accordingly. Hardcoding to 30fps was pretty -bad.

13 years agotests: camerabin2: Add test for audio-filter property
Thiago Santos [Sat, 13 Aug 2011 18:55:01 +0000 (15:55 -0300)]
tests: camerabin2: Add test for audio-filter property

Checks that the audio-filter is properly plugged in the pipeline
and receives buffers when recording a video.

13 years agocamerabin2: Add audio-filter property
Thiago Santos [Thu, 11 Aug 2011 21:59:07 +0000 (18:59 -0300)]
camerabin2: Add audio-filter property

Adds a property to add a custom GstElement to the audio
branch of the pipeline. This allows the user to do custom audio
processing/analysis when recording videos.

13 years agobasevisualizer: add more shader variants and simplify code
Stefan Kost [Fri, 12 Aug 2011 20:39:53 +0000 (22:39 +0200)]
basevisualizer: add more shader variants and simplify code

Use macros to simplyfy the shading code. Those will ease to add support for
other colorspaces in the future. Add more variants for the shading (left,right,
horiz-in, vert-out, vert-in).

13 years agobasevisualizer: more docs
Stefan Kost [Fri, 12 Aug 2011 19:22:20 +0000 (21:22 +0200)]
basevisualizer: more docs

13 years agobaseaudiovisualizer: protect config with a lock
Stefan Kost [Fri, 12 Aug 2011 19:18:44 +0000 (21:18 +0200)]
baseaudiovisualizer: protect config with a lock

Before it was easy to crash the elements when using a ximagesink and triggering
renegotiation by resizing.

13 years agospectrascope: make a copy of the audiodata before downmixing and windowing
Stefan Kost [Fri, 12 Aug 2011 14:57:49 +0000 (16:57 +0200)]
spectrascope: make a copy of the audiodata before downmixing and windowing

The buffers come from the adapter and the data might overlap. We don't want to
modify it in place.

13 years agobasevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream...
Sebastian Dröge [Fri, 12 Aug 2011 10:25:03 +0000 (12:25 +0200)]
basevideoencoder: Proxy the width/height/framerate/PAR constraints of downstream caps to upstream

This allows to specify constraints on the compressed downstream caps
by muxers or capsfilters, which will then be forwarded to upstream
and allows video converters to fulfill the constraints.

Code based on Mark Nauwelaerts audio encoder base class.

13 years agobasevideoencoder: Remove old ::getcaps() comment
Sebastian Dröge [Fri, 12 Aug 2011 10:13:45 +0000 (12:13 +0200)]
basevideoencoder: Remove old ::getcaps() comment

13 years agodiracenc: Update for basevideoencoder ::get_caps() removal
Sebastian Dröge [Fri, 12 Aug 2011 10:08:32 +0000 (12:08 +0200)]
diracenc: Update for basevideoencoder ::get_caps() removal

13 years agoschroenc: Update for basevideoencoder ::get_caps() removal
Sebastian Dröge [Fri, 12 Aug 2011 10:08:20 +0000 (12:08 +0200)]
schroenc: Update for basevideoencoder ::get_caps() removal

13 years agovp8enc: Update for basevideoencoder ::get_caps() removal
Sebastian Dröge [Fri, 12 Aug 2011 10:08:08 +0000 (12:08 +0200)]
vp8enc: Update for basevideoencoder ::get_caps() removal

13 years agobasevideoencoder: Remove ::get_caps() vfunc
Sebastian Dröge [Fri, 12 Aug 2011 10:06:23 +0000 (12:06 +0200)]
basevideoencoder: Remove ::get_caps() vfunc

Subclasses can set the caps more efficiently and this only
caused additional indirections.

13 years agomxf: do not assert on the values of data read from input
Vincent Penquerc'h [Tue, 9 Aug 2011 08:29:21 +0000 (09:29 +0100)]
mxf: do not assert on the values of data read from input

Instead, log a warning, and return.

https://bugzilla.gnome.org/show_bug.cgi?id=563827

13 years agobasevideodecoder: Use the cached video frame size instead of recalculating it
Sebastian Dröge [Wed, 3 Aug 2011 14:02:01 +0000 (16:02 +0200)]
basevideodecoder: Use the cached video frame size instead of recalculating it

13 years agoschroedinger: Fix set but unused variables
Sjoerd Simons [Mon, 8 Aug 2011 15:53:16 +0000 (17:53 +0200)]
schroedinger: Fix set but unused variables

Remove some dead code that triggers "set but unused variables"
from Gcc 4.6.  Fixes #656166

Signed-off-by: David Schleef <ds@schleef.org>
13 years agodirac: Fix set but unused variables
Sjoerd Simons [Mon, 8 Aug 2011 14:44:20 +0000 (16:44 +0200)]
dirac: Fix set but unused variables

Remove some dead code that triggers "set but unused variables" from Gcc
4.6.  Fixes #656164.

Signed-off-by: David Schleef <ds@schleef.org>
13 years agocamerabin2: Adding video-done message
Thiago Santos [Sat, 6 Aug 2011 15:13:22 +0000 (12:13 -0300)]
camerabin2: Adding video-done message

video-done message will be posted when a video recording is
finished. Similar to image-done message.

13 years agocamerabin2: Adding top-level element documentation
Thiago Santos [Fri, 5 Aug 2011 18:48:53 +0000 (15:48 -0300)]
camerabin2: Adding top-level element documentation

13 years agocamerabin2: Fixing typo
Thiago Santos [Fri, 5 Aug 2011 16:34:08 +0000 (13:34 -0300)]
camerabin2: Fixing typo

13 years agomotioncells: turn two global vars into static variables
Stefan Sauer [Thu, 4 Aug 2011 11:33:20 +0000 (13:33 +0200)]
motioncells: turn two global vars into static variables

Move 2 variable to motioncells_warpper and make them static.

13 years agoexamples: Add missing header file
Edward Hervey [Thu, 4 Aug 2011 11:33:56 +0000 (13:33 +0200)]
examples: Add missing header file

13 years agodecklink: Add gstdecklink.h to list of headers
Edward Hervey [Thu, 4 Aug 2011 09:28:30 +0000 (11:28 +0200)]
decklink: Add gstdecklink.h to list of headers

13 years agompegvideoparse: fix sequence header parsing
Alessandro Decina [Thu, 4 Aug 2011 07:49:46 +0000 (09:49 +0200)]
mpegvideoparse: fix sequence header parsing

After bitrate there's 11 bits (1 marker bit + VBV buffer size) before the load
intra quantiser flag.

13 years agophotography: add missing FLICKER_REDUCTION capability
Tommi Myöhänen [Thu, 21 Jul 2011 05:58:27 +0000 (08:58 +0300)]
photography: add missing FLICKER_REDUCTION capability

GstPhotography API contains functions to get/set flicker reduction
mode, but GstPhotoCaps enumeration doesn't have item for it, so elements
are not able to report whether they support this feature or not.
Also add useful GST_PHOTOGRAPHY_CAPS_ALL for easily selecting all
capabilities at once.

https://bugzilla.gnome.org/show_bug.cgi?id=655318

13 years agosubenc: Add webvttenc element
David Schleef [Wed, 3 Aug 2011 20:37:28 +0000 (13:37 -0700)]
subenc: Add webvttenc element

13 years agokateenc: Fix uninitialized error
David Schleef [Wed, 3 Aug 2011 20:35:41 +0000 (13:35 -0700)]
kateenc: Fix uninitialized error

13 years agoschroenc: remove shape_output handling
David Schleef [Sun, 10 Jul 2011 06:22:26 +0000 (23:22 -0700)]
schroenc: remove shape_output handling

13 years agodiracenc: Remove unused shape_output code
David Schleef [Sun, 10 Jul 2011 06:07:39 +0000 (23:07 -0700)]
diracenc: Remove unused shape_output code

13 years agovp8enc: Add more properties
David Schleef [Sun, 10 Jul 2011 01:53:24 +0000 (18:53 -0700)]
vp8enc: Add more properties

13 years agovp8enc: add min/maxsection-pct option
Alexey Fisher [Sun, 19 Jun 2011 14:06:46 +0000 (16:06 +0200)]
vp8enc: add min/maxsection-pct option

This options should be good to redeuce decode CPU load.
for lowend hardware:
minsection-pct=15 maxsection-pct=400

for hiend hw:
minsection-pct=5 maxsection-pct=800

see example:
http://www.webmproject.org/tools/encoder-parameters/#2-pass_vbr_encoding_for_smooth_playback_on_low-end_hardware

Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: David Schleef <ds@schleef.org>
13 years agovp8enc: add lag-in-frames option.
Alexey Fisher [Sun, 19 Jun 2011 09:05:36 +0000 (11:05 +0200)]
vp8enc: add lag-in-frames option.

This option set maximum of frames codec should remember,
to make better prediktion for alt-ref frames.

See example:
http://www.webmproject.org/tools/encoder-parameters/#2-pass_best_quality_vbr_encoding

Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: David Schleef <ds@schleef.org>
13 years agovp8enc: use multipass.cache file name as default for multipass mode.
Alexey Fisher [Sun, 19 Jun 2011 05:16:57 +0000 (07:16 +0200)]
vp8enc: use multipass.cache file name as default for multipass mode.

Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: David Schleef <ds@schleef.org>
13 years agofaac: Add properties for VBR encoding
Mukul Majmudar [Sat, 9 Jul 2011 20:05:07 +0000 (16:05 -0400)]
faac: Add properties for VBR encoding

Property "quality" to specify VBR quantizer quality and property
"brtype" to choose between ABR and VBR encoding. The default is now VBR
with quality=100.

Fixes bug #654310.

Signed-off-by: David Schleef <ds@schleef.org>
13 years agodecklink: Add audio-input property
David Schleef [Thu, 7 Jul 2011 23:07:50 +0000 (16:07 -0700)]
decklink: Add audio-input property

13 years agointer: Adding missing base requirements.
Tim 'mithro' Ansell [Mon, 18 Jul 2011 05:25:05 +0000 (15:25 +1000)]
inter: Adding missing base requirements.

Fixes: #654806.
13 years agocamerabin2: add more missing plugin checks
Thiago Santos [Wed, 3 Aug 2011 18:21:17 +0000 (15:21 -0300)]
camerabin2: add more missing plugin checks

Sprinkle some more missing plugin checks around

13 years agocamerabin2: Add a missing element check and remove TODO
Thiago Santos [Wed, 3 Aug 2011 16:12:18 +0000 (13:12 -0300)]
camerabin2: Add a missing element check and remove TODO

Add missing element checks for elements created at _init
functions and remove TODO about it

13 years agocamerabin2: Remove redundant image-queue
Thiago Santos [Wed, 3 Aug 2011 16:57:09 +0000 (13:57 -0300)]
camerabin2: Remove redundant image-queue

Encodebin is used for image encoding and it already contains
a queue, so we can remove camerabin2 image queue.

13 years agodvbsuboverlay: fix up copyrights
Tim-Philipp Müller [Wed, 3 Aug 2011 12:42:20 +0000 (13:42 +0100)]
dvbsuboverlay: fix up copyrights

13 years agogst-camerabin2-test: Add audio capture caps option
Robert Swain [Wed, 29 Jun 2011 13:14:29 +0000 (15:14 +0200)]
gst-camerabin2-test: Add audio capture caps option

13 years agobasevideoencoder: Make access to the list of frames threadsafe
Sebastian Dröge [Tue, 2 Aug 2011 13:14:24 +0000 (15:14 +0200)]
basevideoencoder: Make access to the list of frames threadsafe

13 years agobayer: back around compiler warnings in orc-generated code by disabling -Werror for...
Tim-Philipp Müller [Tue, 2 Aug 2011 22:53:08 +0000 (23:53 +0100)]
bayer: back around compiler warnings in orc-generated code by disabling -Werror for this plugin

https://bugzilla.gnome.org/show_bug.cgi?id=652677

13 years agoFix some more variable-set-but-not-used compiler warnings
Tim-Philipp Müller [Tue, 2 Aug 2011 21:57:15 +0000 (22:57 +0100)]
Fix some more variable-set-but-not-used compiler warnings

13 years agocamerabin2: examples: Fix camerabin2 G_OBJECT cast
Robert Jobbagy [Tue, 2 Aug 2011 19:14:06 +0000 (21:14 +0200)]
camerabin2: examples: Fix camerabin2 G_OBJECT cast

Adds missing cast to fix build error.

13 years agocamerabin2: Workaround for ringbuffer not resyncing on READY
Thiago Santos [Tue, 2 Aug 2011 13:49:09 +0000 (10:49 -0300)]
camerabin2: Workaround for ringbuffer not resyncing on READY

Add a workaround to fix timestamps meanwhile bug
https://bugzilla.gnome.org/show_bug.cgi?id=648359 is fixed.

13 years agocamerabin2 remove redundant viewfinder-colorspace and viewfinder-scale
Raluca Elena Podiuc [Sat, 30 Jul 2011 13:12:31 +0000 (16:12 +0300)]
camerabin2 remove redundant viewfinder-colorspace and viewfinder-scale

camrabin2 connects a viewfinderbin on "vfsrc". viewfinderbin is made of:
   vfbin-csp ! vfbin-videoscale ! videosink.

we should either remove csp/videoscale from wrappercamerabinsrc (as
done in this patch) or we should get rid of viewfinderbin altogether.

13 years agobasecamerasrc: remove unused get_allowed_input_caps
Raluca Elena Podiuc [Tue, 26 Jul 2011 03:04:41 +0000 (06:04 +0300)]
basecamerasrc: remove unused get_allowed_input_caps

The use of this method was removed in:
    commit 539f10f4d99e1a074881289254d1d109159cf9e5
    basecamerasrc: More cleanup

The code from wrappercamerabinsrc is from v4l2camerasrc but is unused:
get_allowed_input_caps is not called anywhere.

13 years agobasecamerasrc: don't use class offsets for start/stop-capture signal handlers
Raluca Elena Podiuc [Tue, 26 Jul 2011 02:59:09 +0000 (05:59 +0300)]
basecamerasrc: don't use class offsets for start/stop-capture signal handlers

13 years agobasecamerasrc: document why we set preview to PLAYING
Raluca Elena Podiuc [Tue, 26 Jul 2011 02:43:34 +0000 (05:43 +0300)]
basecamerasrc: document why we set preview to PLAYING

13 years agobasecamerasrc: document callbacks
Raluca Elena Podiuc [Tue, 26 Jul 2011 01:42:49 +0000 (04:42 +0300)]
basecamerasrc: document callbacks

Note for each callback:
- when it is called,
- whether it is mandatory or optional.

13 years agobasecamerabinsrc: preview: remove unused new_preroll callback
Raluca Elena Podiuc [Tue, 26 Jul 2011 00:04:47 +0000 (03:04 +0300)]
basecamerabinsrc: preview: remove unused new_preroll callback

13 years agocamerabin2: Synchronize clock and base time to audiosrc
Teemu Katajisto [Thu, 28 Jul 2011 16:18:57 +0000 (13:18 -0300)]
camerabin2: Synchronize clock and base time to audiosrc

When audio source goes to READY it loses its clock and base time,
this patch sets them back after bringing the audio source back to PAUSED.

13 years agocamerabin2: Prevent audio source from providing clock
Robert Swain [Thu, 28 Jul 2011 15:56:12 +0000 (12:56 -0300)]
camerabin2: Prevent audio source from providing clock

The audio source inside camerabin2 is put to READY and back to
PLAYING when starting capture, causing the pipeline to lose its
clock. As camerabin2 isn't put to PAUSED->PLAYING again during
this, a new clock isn't selected for elements.

13 years agocamerabin2: Add flags prop to toggle encodebin conversion elements
Robert Swain [Thu, 30 Jun 2011 09:09:44 +0000 (11:09 +0200)]
camerabin2: Add flags prop to toggle encodebin conversion elements

A flags property has been added to encodebin to toggle whether the
conversion elements (ffmpegcolorspace, videoscale, audioconvert,
audioresample, audiorate) are created and linked into the appropriate
branches of encodebin.

Not including these elements avoids some slow caps negotiation and
allows the first buffers to flow through encodebin much more quickly.
However, it imposes that the uncompressed input is appropriate for the
target profile and elements selected to meet that profile.

13 years agocamerabin2: Prepare audiosrc before start-capture
Robert Swain [Wed, 29 Jun 2011 13:35:42 +0000 (15:35 +0200)]
camerabin2: Prepare audiosrc before start-capture

If we bring the audio source up to the PAUSED state before emitting the
start-capture signal to the camera source, when subequently taking the
audio source to the PLAYING state, it will begin capture more quickly.

13 years agocamerabin2: Remove redundant elements
Robert Swain [Wed, 29 Jun 2011 13:18:47 +0000 (15:18 +0200)]
camerabin2: Remove redundant elements

Since camerabin2 has switched to encodebin and encodebin has its own
queues and conversion elements, those preceding encodebin are no longer
necessary and as such can be removed.

13 years agotsdemux: Take into account upstream newsegment events
Edward Hervey [Mon, 1 Aug 2011 16:49:55 +0000 (18:49 +0200)]
tsdemux: Take into account upstream newsegment events

If the incoming newsegment event was in time, use that position value
for the downstream newsegments.

13 years agohlsdemux: Send NEWSEGMENT events
Edward Hervey [Mon, 1 Aug 2011 16:48:03 +0000 (18:48 +0200)]
hlsdemux: Send NEWSEGMENT events

Previously hlsdemux wasn't sending out any newsegment.
Here we push a GST_FORMAT_TIME newsegment, and whenever possible we
try to indicate the proper start time.

This allows downstream elements to relay the start/time values properly
to the sinks, allowing better stream switching.

13 years agompegtsbase: Remove programs on EOS
Edward Hervey [Mon, 1 Aug 2011 13:46:12 +0000 (15:46 +0200)]
mpegtsbase: Remove programs on EOS

Allows subclasses to properly flush out pending data.

13 years agotsdemux: Refactor stream/program removal
Edward Hervey [Mon, 1 Aug 2011 08:54:16 +0000 (10:54 +0200)]
tsdemux: Refactor stream/program removal

The program_stopped vmethod was called before stream_removed vmethod
was being called. Since we only did stream-related operations in there,
we just remove the program_stopped vmethod and do everything in the
stream_removed one.

Also, make sure we flush out all pending data before sending EOS.

13 years agompegtsbase: Prevent stack gardening by using the right type
Nicolas Dufresne [Thu, 28 Jul 2011 22:21:04 +0000 (18:21 -0400)]
mpegtsbase: Prevent stack gardening by using the right type

stream_type is stored as guint inside the GstStructure but was retreived
using valist with a pointer to guint16. This would cause stack gardening
when code is compiled without optimisation (e.g. in -O0 the compiler wont
pad the stack to optimise out required mask).

https://bugzilla.gnome.org/show_bug.cgi?id=655540

13 years agotests: fix compiler warning in faad unit test
Tim-Philipp Müller [Fri, 29 Jul 2011 20:26:41 +0000 (21:26 +0100)]
tests: fix compiler warning in faad unit test

13 years agoid3mux: use now-public GstTagMux base class from libgsttag
Tim-Philipp Müller [Fri, 29 Jul 2011 18:43:11 +0000 (19:43 +0100)]
id3mux: use now-public GstTagMux base class from libgsttag

13 years agotagmux: require subclass to install sink pad template
Tim-Philipp Müller [Thu, 28 Jul 2011 19:38:37 +0000 (20:38 +0100)]
tagmux: require subclass to install sink pad template

Require the subclass to install both source and sink pad
templates. Also, print some warnings if the subclass doesn't
do that.

https://bugzilla.gnome.org/show_bug.cgi?id=555437

13 years agogstmotioncells_dynamic_test: test tool what can to do dynamic change properties
Robert Jobbagy [Wed, 27 Jul 2011 20:34:23 +0000 (22:34 +0200)]
gstmotioncells_dynamic_test: test tool what can to do dynamic change properties

13 years agomotioncells: new element to detect areas of motion
Robert Jobbagy [Wed, 27 Jul 2011 16:58:15 +0000 (18:58 +0200)]
motioncells: new element to detect areas of motion

13 years agohsldemux: Handle change of media types
Edward Hervey [Tue, 26 Jul 2011 15:02:05 +0000 (17:02 +0200)]
hsldemux: Handle change of media types

When switching bitrates, we might end up switching to a different
media-type (like from aac to/from mpeg-ts).

For this switch to behave properly in decodebin2, this patch adds:
* dynamic source pads (which will be added/removed whenever a stream
  media type changes
* re-checking the fragment media type whenever we switch to a different
  playlist

13 years agompeg4videoparse: Fix unitialized variable on old compilers
Edward Hervey [Tue, 26 Jul 2011 11:47:04 +0000 (13:47 +0200)]
mpeg4videoparse: Fix unitialized variable on old compilers

13 years agohlsdemux: fix wrong usage of GST_ELEMENT_ERROR macros and compilation on NetBSD
Olaf Seibert [Wed, 27 Jul 2011 10:02:41 +0000 (11:02 +0100)]
hlsdemux: fix wrong usage of GST_ELEMENT_ERROR macros and compilation on NetBSD

https://bugzilla.gnome.org/show_bug.cgi?id=655319

13 years agopcapparse: fix compiler warning
Tim-Philipp Müller [Wed, 27 Jul 2011 09:56:15 +0000 (10:56 +0100)]
pcapparse: fix compiler warning

gstpcapparse.c: In function 'gst_pcap_parse_chain':
gstpcapparse.c:381:6: error: 'eth_type' may be used uninitialized in this function [-Werror=uninitialized]
gstpcapparse.c:354:11: note: 'eth_type' was declared here

13 years agopcapparse: fix SLL parsing
Felipe Contreras [Tue, 26 Jul 2011 16:11:16 +0000 (19:11 +0300)]
pcapparse: fix SLL parsing

The current code is not checking for ethernet type, as it's supposed to,
but link layer device type and it's hard-coded to only accept dumps from
ethernet (ARPHRD_ETHER; 1). We don't care where the dump was fetched
from (wlan, 3G, etc.)

What we care about is the that the ethernet type is IP (ETHERNET_IP;
0x800), which is clearly field 14:

http://www.tcpdump.org/pcap3_man.html

And do a bit of cleanup.

Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
13 years agompegtsbase/tsdemux: Fix stream/pad activation order
Edward Hervey [Thu, 21 Jul 2011 11:26:55 +0000 (13:26 +0200)]
mpegtsbase/tsdemux: Fix stream/pad activation order

We first activate new streams before shutting down old ones.
We emit no-more-pads after we add new streams and emit EOS before
removing old ones.
Also cleanup/refactor a bit more of the code accordingly

13 years agocamerabin2: add location=NULL docs to PORTING
Raluca Elena Podiuc [Fri, 22 Jul 2011 09:26:07 +0000 (12:26 +0300)]
camerabin2: add location=NULL docs to PORTING

https://bugzilla.gnome.org/show_bug.cgi?id=641918