platform/upstream/gstreamer.git
10 years agoassrender: remove code that can't be reached
Tim-Philipp Müller [Fri, 29 Aug 2014 18:26:40 +0000 (19:26 +0100)]
assrender: remove code that can't be reached

If this code could ever be reached, it would leak
memory (CID 1231979), but gst_caps_get_features()
never returns NULL, so that can't happen.

10 years agodvbsuboverlay: remove code that can't be reached
Tim-Philipp Müller [Fri, 29 Aug 2014 18:24:52 +0000 (19:24 +0100)]
dvbsuboverlay: remove code that can't be reached

If this code could ever be reached, it would leak
memory (CID 1231977), but gst_caps_get_features()
never returns NULL, so that can't happen.

10 years agoh264parse: fix up handling of input caps corner cases
Tim-Philipp Müller [Thu, 28 Aug 2014 19:12:07 +0000 (20:12 +0100)]
h264parse: fix up handling of input caps corner cases

Do more elaborate validation of the input caps: what fields
are required and/or not allowed. Don't assume AVC3 format
input without codec_data field is byte-stream format. Fix
up some now-unreachable code (CID 1232800).

10 years agoglimagesink: Add missing break to switch
Sebastian Dröge [Thu, 28 Aug 2014 13:42:30 +0000 (16:42 +0300)]
glimagesink: Add missing break to switch

CID 1232801

10 years agorawparse: Reset negotiation state when going back to READY
Sebastian Dröge [Thu, 28 Aug 2014 08:37:56 +0000 (11:37 +0300)]
rawparse: Reset negotiation state when going back to READY

After going back to READY we can accept new format settings again.

10 years agohlsdemux: Support OpenSSL for AES decryption of HLS fragments
Thomas Bluemel [Fri, 22 Aug 2014 21:18:59 +0000 (15:18 -0600)]
hlsdemux: Support OpenSSL for AES decryption of HLS fragments

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

10 years agogl: qglwtextureshare demo fixes and cleanup
Wang Xin-yu (王昕宇) [Tue, 26 Aug 2014 08:21:42 +0000 (16:21 +0800)]
gl: qglwtextureshare demo fixes and cleanup

1. glcontextid function is replaced by gstreamer gst_gl_context_new_wrapped .
2. call gst_init before gst_gl_display_new , seems gst_gl_display_new depends
   on gst_allocator_register , which only worked after gst_init called
3. flush gstreamer OpenGL context before using shared texture, fix
   flicker problem.

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

10 years agogl: Add GSTGLAPI macro to the debug callback function
Wang Xin-yu (王昕宇) [Wed, 27 Aug 2014 05:40:42 +0000 (13:40 +0800)]
gl: Add GSTGLAPI macro to the debug callback function

Fixes the Windows build.

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

10 years agorfbsrc: Clamp out of bounds resolutions to prevent segfaults
Blake Tregre [Thu, 28 Aug 2014 06:53:17 +0000 (09:53 +0300)]
rfbsrc: Clamp out of bounds resolutions to prevent segfaults

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

10 years agogl: do not check for GL/GLU/EGL/GLES2 libs if disabled in configuration
Carlos Rafael Giani [Wed, 27 Aug 2014 12:47:25 +0000 (14:47 +0200)]
gl: do not check for GL/GLU/EGL/GLES2 libs if disabled in configuration

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

10 years agoegl: Wrap KHR_create_context flags in an ifdef
Jan Schmidt [Tue, 26 Aug 2014 02:38:52 +0000 (12:38 +1000)]
egl: Wrap KHR_create_context flags in an ifdef

EGL_CONTEXT_FLAGS_KHR and EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR
don't exist in the Android NDK. Wrap their usage in an #ifdef
EGL_KHR_create_context to fix the build there.

10 years agoh264parse: don't consider unknown stream-format as avc
Thiago Santos [Thu, 21 Aug 2014 15:32:10 +0000 (12:32 -0300)]
h264parse: don't consider unknown stream-format as avc

It should try to use bytestream in these cases that the format
is set to _FORMAT_NONE as it seems that is what the 'else' clause
for bytestream can handle (by defaulting to _FORMAT_BYTESTREAM).

10 years agoh264parse: tests: fix caps for avc format
Thiago Santos [Mon, 25 Aug 2014 16:33:15 +0000 (13:33 -0300)]
h264parse: tests: fix caps for avc format

If it has a codec_data field, it should also use the stream-format=avc as
codec_data doesn't make sense otherwise and the default should
be bytestream

10 years agodocs: add mpegpsmux and mpegtsmux
Tim-Philipp Müller [Mon, 25 Aug 2014 14:21:39 +0000 (15:21 +0100)]
docs: add mpegpsmux and mpegtsmux

10 years agodocs: add audiomixer to docs
Tim-Philipp Müller [Mon, 25 Aug 2014 14:20:59 +0000 (15:20 +0100)]
docs: add audiomixer to docs

10 years agodocs: add aiff elements to docs
Tim-Philipp Müller [Mon, 25 Aug 2014 14:20:16 +0000 (15:20 +0100)]
docs: add aiff elements to docs

10 years agodocs: plugins: misc updates
Tim-Philipp Müller [Mon, 25 Aug 2014 13:56:15 +0000 (14:56 +0100)]
docs: plugins: misc updates

10 years agodocs: move GstPhotography interface docs into the library docs
Tim-Philipp Müller [Mon, 25 Aug 2014 13:43:49 +0000 (14:43 +0100)]
docs: move GstPhotography interface docs into the library docs

Now that we have docs for the libs.

10 years agosndfile: don't decode formats that are better handled by other elements
Tim-Philipp Müller [Mon, 25 Aug 2014 11:21:36 +0000 (12:21 +0100)]
sndfile: don't decode formats that are better handled by other elements

In particular: flac, ogg, pcm, au, aiff, wav.

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

10 years agoegl: fallback to a non-debug context if a debug one fails
Matthew Waters [Fri, 22 Aug 2014 06:49:10 +0000 (16:49 +1000)]
egl: fallback to a non-debug context if a debug one fails

The text for EGL_KHR_create_context added the possiblity for ES
contexts to ask for a debug context however that has not been
fully realized by all implementations.  Fallback to a non-debug
context when the implementation errors.

10 years agosrtpdec: Add support for RTP/RTCP mixing if data arrives on RTCP pad
Youness Alaoui [Tue, 5 Aug 2014 18:06:07 +0000 (14:06 -0400)]
srtpdec: Add support for RTP/RTCP mixing if data arrives on RTCP pad

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

10 years agodashdemux: fix abort in error code path with newer glib
Tim-Philipp Müller [Thu, 21 Aug 2014 15:24:06 +0000 (16:24 +0100)]
dashdemux: fix abort in error code path with newer glib

Don't forget to unlock mpd client again when erroring out.
Fixes abort when g_mutex_clear() is called on a locked mutex.

10 years agogstopengl: add introspection support
Lubosz Sarnecki [Wed, 2 Jul 2014 10:49:44 +0000 (12:49 +0200)]
gstopengl: add introspection support

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

10 years agoexamples: fix gtk+ 3.14 deprecation error
Lubosz Sarnecki [Tue, 5 Aug 2014 10:07:08 +0000 (12:07 +0200)]
examples: fix gtk+ 3.14 deprecation error

https://developer.gnome.org/gtk3/3.13/GtkWidget.html#gtk-widget-set-double-buffered

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

10 years agoglimagesink: expose context
Lubosz Sarnecki [Mon, 7 Jul 2014 08:52:06 +0000 (10:52 +0200)]
glimagesink: expose context

* expose context in draw / reshape callbacks
* add context property

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

10 years agoglshader: expose opengl handle in getter
Lubosz Sarnecki [Mon, 7 Jul 2014 08:51:28 +0000 (10:51 +0200)]
glshader: expose opengl handle in getter

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

10 years agogl: check null before unref GstGLDisplay
Wang Xin-yu (王昕宇) [Wed, 20 Aug 2014 01:37:01 +0000 (09:37 +0800)]
gl: check null before unref GstGLDisplay

10 years agogl: add prototype definition for KHR_debug
Matthew Waters [Thu, 21 Aug 2014 00:03:07 +0000 (10:03 +1000)]
gl: add prototype definition for KHR_debug

10 years agoglcontext: implement the debug callback
Matthew Waters [Wed, 20 Aug 2014 13:24:12 +0000 (23:24 +1000)]
glcontext: implement the debug callback

For both GL_KHR_debug and ARB_debug_output.  This allows us to
receive errors and other hints from the GL instead of querying after
every GL operation.

10 years agogl: add prototypes for KHR_debug/ARB_debug_output
Matthew Waters [Wed, 20 Aug 2014 13:23:06 +0000 (23:23 +1000)]
gl: add prototypes for KHR_debug/ARB_debug_output

10 years agodashdemux: unref pad reference when removing internal source in error
Thiago Santos [Tue, 19 Aug 2014 20:17:33 +0000 (17:17 -0300)]
dashdemux: unref pad reference when removing internal source in error

Avoids leaking the pad in error situations

10 years agodashdemux: read language from ContentComponent node as a fallback
Thiago Santos [Tue, 19 Aug 2014 19:01:58 +0000 (16:01 -0300)]
dashdemux: read language from ContentComponent node as a fallback

If the language is not specified in the AdaptationSet, use the ContentComponent
node to get it. We only get it if there is only a single ContentComponent as
it doesn't seem clear on what to do if there are multiple entries

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

10 years agodashdemux: push language code tag
Matthieu Bouron [Wed, 25 Jun 2014 13:55:32 +0000 (15:55 +0200)]
dashdemux: push language code tag

Language code tag is retrieved from the AdaptationSet language
property.

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

10 years agogl: don't take an extra ref on the display on set_context
Matthew Waters [Tue, 19 Aug 2014 10:14:22 +0000 (20:14 +1000)]
gl: don't take an extra ref on the display on set_context

gst_context_get_gl_display() returns a ref.  Don't take another in
gst_object_replace().

10 years agoglmixer: unref the GstGLUpload in the pad if freed while running
Matthew Waters [Tue, 19 Aug 2014 07:01:36 +0000 (17:01 +1000)]
glmixer: unref the GstGLUpload in the pad if freed while running

Dynamic pipelines that get and release the sink pads will finalize
the pad without going through gst_gl_mixer_stop() which is where the
upload object is usually freed.  Don't leak objects in such case.

10 years agoglvideomixer: avoid gl resource race condition between different thread
Wang Xin-yu (王昕宇) [Fri, 15 Aug 2014 03:51:21 +0000 (23:51 -0400)]
glvideomixer: avoid gl resource race condition between different thread

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

10 years agoglvideomixer: don't clobber unnecessary GstVideoInfo fields
Matthew Waters [Tue, 19 Aug 2014 04:44:29 +0000 (14:44 +1000)]
glvideomixer: don't clobber unnecessary GstVideoInfo fields

otherwise we might clobber other important fields such as the frame rate.

10 years agoglvideomixer: get the attribute from the correct shader
Matthew Waters [Tue, 19 Aug 2014 04:43:42 +0000 (14:43 +1000)]
glvideomixer: get the attribute from the correct shader

10 years agoglimagesink: unref the window on navigation event
Matthew Waters [Tue, 19 Aug 2014 04:23:21 +0000 (14:23 +1000)]
glimagesink: unref the window on navigation event

plugs a memory leak

10 years agotsdemux: remove pads when resetting the element
Thiago Santos [Tue, 19 Aug 2014 03:01:28 +0000 (00:01 -0300)]
tsdemux: remove pads when resetting the element

Otherwise the pads will be there if it is restarted and the stream
can be a completely different one.

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

10 years agocodecparser: h264: Use proper bit_reader api while parsing buffering_period SEI
Sreerenj Balachandran [Sat, 16 Aug 2014 22:42:05 +0000 (01:42 +0300)]
codecparser: h264: Use proper bit_reader api while parsing buffering_period SEI

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

10 years agoscenechange: fix crash on startup
Vineeth T M [Thu, 14 Aug 2014 04:49:13 +0000 (10:19 +0530)]
scenechange: fix crash on startup

gst_video_frame_map() was using the oldinfo GstVideoInfo
before it's been populated, resulting in a crash right
at the start.

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

10 years agoandroidmedia: Make sure to unblock any thread waiting on the drain condition variable...
Sebastian Dröge [Thu, 14 Aug 2014 12:26:53 +0000 (15:26 +0300)]
androidmedia: Make sure to unblock any thread waiting on the drain condition variable when errors happen

10 years agoandroidmedia: Fix draining logic to let the base class handle EOS events
Sebastian Dröge [Thu, 14 Aug 2014 12:24:21 +0000 (15:24 +0300)]
androidmedia: Fix draining logic to let the base class handle EOS events

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

10 years agodvbbasebin: fix parsing of freqs in some ZAP files
Reynaldo H. Verdejo Pinochet [Tue, 12 Aug 2014 01:25:41 +0000 (21:25 -0400)]
dvbbasebin: fix parsing of freqs in some ZAP files

Change avoids attempting to convert to kHz if unneeded.

There are quite some ZAP format variants out there. Among
their subtle little differences, some store transponder
frequencies in Mhz and others in kHz. The latter been the
most common variant.

10 years agodvbsrc: get rid of remaining trailing whitespace
Reynaldo H. Verdejo Pinochet [Thu, 7 Aug 2014 23:37:01 +0000 (19:37 -0400)]
dvbsrc: get rid of remaining trailing whitespace

10 years agodvbsrc: wrap around known-interruptible ioctls
Reynaldo H. Verdejo Pinochet [Thu, 7 Aug 2014 23:19:36 +0000 (19:19 -0400)]
dvbsrc: wrap around known-interruptible ioctls

Also get rid of the asumption that some requests like
FE_SET_TONE or FE_SET_VOLTAGE only error out with -1

10 years agodvbsrc: drop gst_dvbsrc_retry_ioctl for retry macro
Reynaldo H. Verdejo Pinochet [Thu, 7 Aug 2014 18:00:40 +0000 (14:00 -0400)]
dvbsrc: drop gst_dvbsrc_retry_ioctl for retry macro

LOOP_WHILE_EINTR macro makes it easier to handle
assorted ioctl argp types. Functionality is otherwise
equivalent.

10 years agodvbsrc: dvbbasebin: add 'tune' signal
Reynaldo H. Verdejo Pinochet [Tue, 12 Aug 2014 16:35:00 +0000 (12:35 -0400)]
dvbsrc: dvbbasebin: add 'tune' signal

It works the same as the 'tune' property that is used only to signal
the element that it should tune, but it is more natural to be used
as a signal rather than a property.

It is also proxied at the dvbbasebin element

10 years agohlsdemux: Do not switch playlist on trick modes
Thibault Saunier [Thu, 7 Aug 2014 13:25:32 +0000 (15:25 +0200)]
hlsdemux: Do not switch playlist on trick modes

Instead always use the low bandwith playlist making things go smoother
as the current heuristic is rather set for normal playback, and
currently it does not behave properly.

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

10 years agohlsdemux: No need to have a I-Frame list to do trick modes
Thibault Saunier [Mon, 21 Jul 2014 12:42:47 +0000 (14:42 +0200)]
hlsdemux: No need to have a I-Frame list to do trick modes

It just works cleanly without any index and there is no real reason for
that limitation. Also, there are very few stream with that feature.

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

10 years agotsdemux: Do not tweak segments on reverse playback
Thibault Saunier [Tue, 5 Aug 2014 15:13:13 +0000 (17:13 +0200)]
tsdemux: Do not tweak segments on reverse playback

We can't compare the first buffer start and the segment start in that
case... playback is going backward!

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

10 years agofacedetect: Use NULL to disable eyes/nose/mouth
Valentin PONS [Wed, 13 Aug 2014 14:57:15 +0000 (16:57 +0200)]
facedetect: Use NULL to disable eyes/nose/mouth

Without printing a warning about it

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

10 years agoglbufferpool: fix allocator leak in some cases
Tim-Philipp Müller [Sun, 10 Aug 2014 21:58:22 +0000 (22:58 +0100)]
glbufferpool: fix allocator leak in some cases

Spotted by Sebastian Rasmussen.

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

10 years agoassrender: save a few ref/unref pairs
Thiago Santos [Mon, 11 Aug 2014 15:32:04 +0000 (12:32 -0300)]
assrender: save a few ref/unref pairs

The event/query functions already have a reference to the element, avoid
ref/unref in the functions handling caps queries and events.

10 years agoassrender: remove obsolete fixme
Thiago Santos [Mon, 11 Aug 2014 15:31:17 +0000 (12:31 -0300)]
assrender: remove obsolete fixme

10 years agoassrender: improve negotiation
Thiago Santos [Mon, 11 Aug 2014 15:22:44 +0000 (12:22 -0300)]
assrender: improve negotiation

Check if downstream supports overlay meta, if possible use it and
if not fallback to no-overlay caps

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

10 years agoassrender: always intersect with the filter caps
Thiago Santos [Mon, 11 Aug 2014 15:21:28 +0000 (12:21 -0300)]
assrender: always intersect with the filter caps

Avoids returning values that peers can't use

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

10 years agodvbsuboverlay: improve negotiation
Thiago Santos [Mon, 11 Aug 2014 14:35:01 +0000 (11:35 -0300)]
dvbsuboverlay: improve negotiation

Check if downstream supports overlay meta, if possible use it and
if not fallback to no-overlay caps

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

10 years agodvbsuboverlay: always intersect with the filter in getcaps
Thiago Santos [Mon, 11 Aug 2014 14:33:28 +0000 (11:33 -0300)]
dvbsuboverlay: always intersect with the filter in getcaps

Avoids returning unsupported caps to peers

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

10 years agoaggregator: fix up doc comment for set_src_caps
Matthew Waters [Mon, 11 Aug 2014 13:38:40 +0000 (23:38 +1000)]
aggregator: fix up doc comment for set_src_caps

It does not occur 'later' anymore

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

10 years agovideoaggregator: push the caps event as soon as we receive it
Matthew Waters [Thu, 7 Aug 2014 09:54:36 +0000 (19:54 +1000)]
videoaggregator: push the caps event as soon as we receive it

Along with the required mandatory dependent events.

Some elements need to perform an allocation query inside
::negotiated_caps().  Without the caps event being sent prior,
downstream elements will be unable to answer and will return
an error.

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

10 years agowebenc: Add WebP image encoder
Sreerenj Balachandran [Mon, 11 Aug 2014 13:01:32 +0000 (16:01 +0300)]
webenc: Add WebP image encoder

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

10 years agosbcenc: Unref output caps in error cases
Sebastian Rasmussen [Fri, 8 Aug 2014 23:29:30 +0000 (01:29 +0200)]
sbcenc: Unref output caps in error cases

gst_caps_intersect() returns a reference to a caps object which in
the normal case is consumed, but in error cases must be unreferenced.

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

10 years agoopusenc: Unref pad template caps after usage
Sebastian Rasmussen [Fri, 8 Aug 2014 12:08:19 +0000 (14:08 +0200)]
opusenc: Unref pad template caps after usage

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

10 years agointer: Unref bus after usage
Sebastian Rasmussen [Sat, 9 Aug 2014 09:41:17 +0000 (11:41 +0200)]
inter: Unref bus after usage

gst_pipeline_get_bus() returns a reference to a bus that needs to
be unreferenced after usage.

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

10 years agoexamples/gl: unref bus and element after usage
Sebastian Rasmussen [Sat, 9 Aug 2014 09:45:41 +0000 (11:45 +0200)]
examples/gl: unref bus and element after usage

gst_pipeline_get_bus() and gst_bin_get_by_interface() both
return references that need to be unreferenced after usage.

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

10 years agodocs: update for git master
Tim-Philipp Müller [Sun, 10 Aug 2014 18:12:01 +0000 (19:12 +0100)]
docs: update for git master

10 years agodocs: remove rtpvp8 plugin docs, the elements are now in -good
Tim-Philipp Müller [Sun, 10 Aug 2014 18:05:43 +0000 (19:05 +0100)]
docs: remove rtpvp8 plugin docs, the elements are now in -good

10 years agoopengl: update element docs for 1.x
Tim-Philipp Müller [Sun, 10 Aug 2014 17:07:28 +0000 (18:07 +0100)]
opengl: update element docs for 1.x

10 years agodocs: remove eglglessink from docs as it no longer exists
Tim-Philipp Müller [Sun, 10 Aug 2014 16:48:50 +0000 (17:48 +0100)]
docs: remove eglglessink from docs as it no longer exists

10 years agowrappercamerabinsrc: Unref elements after usage
Sebastian Rasmussen [Sat, 9 Aug 2014 09:36:38 +0000 (11:36 +0200)]
wrappercamerabinsrc: Unref elements after usage

gst_bin_get_by_name() and gst_bin_get_by_interface() both return
references to elements that need to be unreferenced after usage.

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

10 years agoopenal: Unref pad template caps after usage
Sebastian Rasmussen [Fri, 8 Aug 2014 23:27:53 +0000 (01:27 +0200)]
openal: Unref pad template caps after usage

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

10 years agoladspa: fix up broken patch merge
Tim-Philipp Müller [Sun, 10 Aug 2014 11:29:04 +0000 (12:29 +0100)]
ladspa: fix up broken patch merge

Sorry, should've been commit --amend

10 years agopvrvideosink: Avoid leaking bufferpool configuration
Sebastian Rasmussen [Sat, 9 Aug 2014 11:24:00 +0000 (13:24 +0200)]
pvrvideosink: Avoid leaking bufferpool configuration

gst_buffer_pool_get_config() returns a copy to the bufferpool's
configuration, which must be passed to gst_structure_free() after
use if not given away to gst_buffer_pool_set_config().

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

10 years agodirectsoundsrc: Avoid leaking copy of caps object
Sebastian Rasmussen [Sat, 9 Aug 2014 11:22:42 +0000 (13:22 +0200)]
directsoundsrc: Avoid leaking copy of caps object

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.

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

10 years agovtenc: Avoid leaking caps object and its copy
Sebastian Rasmussen [Sat, 9 Aug 2014 11:20:41 +0000 (13:20 +0200)]
vtenc: Avoid leaking caps object and its copy

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak. Also
the caps are pushed as an event downstream, but this doesn't consume the
caps so it must still be unreferenced.

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

10 years agoamcvideoenc: Avoid leaking copy of caps object
Sebastian Rasmussen [Sat, 9 Aug 2014 11:17:17 +0000 (13:17 +0200)]
amcvideoenc: Avoid leaking copy of caps object

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.
Also remove the incorrect comment to avoid confusion in the future.

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

10 years agointerlace: fix caps refcounting
Sebastian Rasmussen [Sat, 9 Aug 2014 11:12:14 +0000 (13:12 +0200)]
interlace: fix caps refcounting

tcaps was unrefed when it shouldn't have been unrefed
in some cases.

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

10 years agodvbsuboverlay: Avoid leaking copy of caps object
Sebastian Rasmussen [Sat, 9 Aug 2014 11:09:52 +0000 (13:09 +0200)]
dvbsuboverlay: Avoid leaking copy of caps object

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.

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

10 years agovideoaggregator: Unref allowed caps after usage
Sebastian Rasmussen [Sat, 9 Aug 2014 09:17:44 +0000 (11:17 +0200)]
videoaggregator: Unref allowed caps after usage

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

10 years agoladspa: Unref pad template caps after usage
Sebastian Rasmussen [Fri, 8 Aug 2014 23:25:21 +0000 (01:25 +0200)]
ladspa: Unref pad template caps after usage

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

10 years agoladspa: Unref pad template caps after usage
Sebastian Rasmussen [Fri, 8 Aug 2014 23:25:21 +0000 (01:25 +0200)]
ladspa: Unref pad template caps after usage

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

10 years agodfbvideosink: Unref pad template caps after usage
Sebastian Rasmussen [Fri, 8 Aug 2014 23:23:50 +0000 (01:23 +0200)]
dfbvideosink: Unref pad template caps after usage

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

10 years agotests: remove defunct test code for old colorspace element
Tim-Philipp Müller [Sun, 10 Aug 2014 10:35:41 +0000 (11:35 +0100)]
tests: remove defunct test code for old colorspace element

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

10 years agoelement-maker: Avoid leaking copy of caps object
Sebastian Rasmussen [Sat, 9 Aug 2014 11:27:00 +0000 (13:27 +0200)]
element-maker: Avoid leaking copy of caps object

gst_pad_get_pad_template_caps() returns a reference which is unreferenced,
so creating a copy using gst_caps_copy() results in a reference leak.

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

10 years agogstgsmenc: Unref caps object after usage
Sebastian Rasmussen [Sat, 9 Aug 2014 12:27:34 +0000 (14:27 +0200)]
gstgsmenc: Unref caps object after usage

gst_audio_encoder_set_output_format() does not consume caps, so
unreference that object instead.

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

10 years agoopus: Improve annotation of internal function
Sebastian Rasmussen [Sat, 9 Aug 2014 12:24:59 +0000 (14:24 +0200)]
opus: Improve annotation of internal function

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

10 years agodashdemux: support downloading segments in reverse order
George Kiagiadakis [Wed, 6 Aug 2014 15:11:20 +0000 (18:11 +0300)]
dashdemux: support downloading segments in reverse order

When a seek with a negative rate is requested, find the target
segment where gstsegment.stop belongs in and then download from
this segment backwards until the first segment.

This allows proper reverse playback.

10 years agoglvideomixer: add a background property
Matthew Waters [Thu, 7 Aug 2014 09:18:49 +0000 (19:18 +1000)]
glvideomixer: add a background property

That's compatible with the compositor/videomixer property

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

10 years agoext:faad: Set rank to SECONDARY as the libav decoder is concidered better
Thibault Saunier [Wed, 6 Aug 2014 11:27:04 +0000 (13:27 +0200)]
ext:faad: Set rank to SECONDARY as the libav decoder is concidered better

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

10 years agoGstGLWindow, GstGLImagesink, x11: Scale navigation events on resized windows
Vasilis Liaskovitis [Wed, 6 Aug 2014 13:48:03 +0000 (16:48 +0300)]
GstGLWindow, GstGLImagesink, x11: Scale navigation events on resized windows

If window is resized, GstStructure pointer values have to be rescaled to
original geometry. A get_surface_dimensions GLWindow class method is added for
this purpose and used in the navigation send_event function.

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

10 years agoglupload: don't determine if frame needs upload by pointer compare
Wang Xin-yu (王昕宇) [Wed, 6 Aug 2014 12:15:38 +0000 (08:15 -0400)]
glupload: don't determine if frame needs upload by pointer compare

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

10 years agompegtspacketizer: Store PCR time/byte offsets in 64 bit integers
Sebastian Dröge [Tue, 5 Aug 2014 09:45:55 +0000 (11:45 +0200)]
mpegtspacketizer: Store PCR time/byte offsets in 64 bit integers

32 bit integers are going to overflow, especially the PCR offset to
the first PCR will overflow after about 159 seconds. This makes playback
of streams stop at 159 seconds as suddenly the timestamps are starting
again from 0. Now we have a few more years time until it happens again
and 64 bits are too small.

10 years agoRevert "mpegtspacketizer: Convert PCR times to GStreamer times before comparing them...
Sebastian Dröge [Tue, 5 Aug 2014 08:42:28 +0000 (10:42 +0200)]
Revert "mpegtspacketizer: Convert PCR times to GStreamer times before comparing them against 500 * GST_MSECOND"

This reverts commit 9f186c6ab32c1e949916d385186b2d400190add6.

That commit was actually completely wrong, nevermind.

10 years agompegtspacketizer: Convert PCR times to GStreamer times before comparing them against...
Sebastian Dröge [Tue, 5 Aug 2014 08:36:17 +0000 (10:36 +0200)]
mpegtspacketizer: Convert PCR times to GStreamer times before comparing them against 500 * GST_MSECOND

Otherwise it will believe to detect PCR gaps already when there's a very small
gap of a few milliseconds, breaking playback of some files.

10 years agodvbsrc: remove srcpad leftover
Reynaldo H. Verdejo Pinochet [Thu, 31 Jul 2014 21:40:30 +0000 (17:40 -0400)]
dvbsrc: remove srcpad leftover

The element is inheriting its srcpad from basesrc

10 years agodecklinksink: Initialize pixel format to bmdFormat8BitYUV
Sebastian Dröge [Fri, 1 Aug 2014 16:02:10 +0000 (18:02 +0200)]
decklinksink: Initialize pixel format to bmdFormat8BitYUV

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

10 years agocodecparsers_h264: initialize some fields of pic_timing structure
Aurélien Zanelli [Fri, 1 Aug 2014 14:40:49 +0000 (16:40 +0200)]
codecparsers_h264: initialize some fields of pic_timing structure

Otherwise pic timing structure can have invalid cpb_removal_delay,
dpb_output_delay or pic_struct_present_flag which are blindly retrieved
in h264parse.

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

10 years agodecklinksink: Catch errors during data flow and error out properly
Sebastian Dröge [Fri, 1 Aug 2014 14:58:23 +0000 (16:58 +0200)]
decklinksink: Catch errors during data flow and error out properly

Otherwise we will just deadlock the thread if e.g. scheduling a video
frame fails for whatever reason.