~thong-u/unoptimized/+git/gstreamer-vaapi:1.8

Last commit made on 2016-11-25
Get this branch:
git clone -b 1.8 https://git.launchpad.net/~thong-u/unoptimized/+git/gstreamer-vaapi

Branch merges

Branch information

Recent commits

c0d2742... by Dominique Leuenberger aka DimStar

build: add LIBVA_WAYLAND_CFLAGS to libgstvaapiegl

In case libva-wayland has its headers not installed in default
locations (like /usr/include), the build fails to include "wayland-client.h":

   CC libgstvaapi_egl_la-gstvaapiutils_egl.lo
 In file included from gstvaapidisplay_wayland.h:27:0,
                  from gstvaapidisplay_egl.c:35:
 /usr/include/va/va_wayland.h:31:28: fatal error: wayland-client.h: No such file or directory
  #include <wayland-client.h>

As we already passed VA_CLAGS, /usr/include/va/va_wayland.h could be found, but it is
our fault not to instruct the system that we ALSO care for va_wayland. We correctly query
for libva-wayland.pc in configure and use this in other places as well. It is thus only
correct and consequent, to do it also at this spot.

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

86308e9... by Hyunjun Ko <email address hidden>

vaapisink: finish event thread at stop()

The thread that handles window's events should be finished during
pipeline's shutdown, otherwise it will remain alive during pipeline
re-activation, leading to unexpected problems.

This patch fixes failures of intensive_state_change scenario of
gst-validate

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

d2c8a34... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

vaapipostproc: enhance debug message

"gst_pad_push" is not a good description of the event.

dd13d6e... by Hyunjun Ko <email address hidden>

postproc: honor gst_pad_push() return value

Returning GST_FLOW_ERROR always when gst_pad_push fails might lead to
deadlock during seek.

This patch returns the same error of gst_pad_push() and log out the
return value.

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

a244e60... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

plugins: ensure display when getting raw caps

When running gst-discoverer-1.0, in certain media, vaapipostroc is stopped
meanwhile it is transforming caps. The problem is that stop() calls
gst_vaapi_plugin_base_close(), which nullifies the element's va display, but
the va display is used in tranform_caps() when it is extracting the possible
format conversions. This display disappearing generates warning messages.

This patch holds a local reference of va display at ensure_allowed_raw_caps()
hence it doesn't go away meanwhile it is used, even if the
gst_vaapi_plugin_base_close() is called in other thread.

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

869ca5e... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

vaapivideomemory: increment map counter only if succeeded

Previously the frame map counter increased independently if the map succeeded
or not. This leaded to critical messages and crashes if the frame was unable
to be mapped, but the counter increased.

This patch increases the map counter only if the map operation occurred.

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

b60e2df... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

encoder: h264,h265: fix regression in offset count

In commit dc35dafa a bug was introduced because I assumed that
GST_CLOCK_TIME_NONE is zero when is -1. This patch fixes that mistake.

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

56ace00... by Sreerenj Balachandran <email address hidden>

encoder: vp8: Increase the allocation size for coded buffer

We are not getting enough compression for some streams and
encoded frame end up with more size than allocated.
Assuming a compression ratio of 4, which should be good enough
for holding the frames.

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

e34bf3f... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

vaapidecode: codec_data minimal size is 7

When the format of a H.264 stream is AVC3, the SPS and PPS are inside the
stream, not in the codec_data, so the size of codec_data might be 7.

This patch reduces the minimal size of the codec_data buffer from 8 to 7.

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

d674d06... by =?utf-8?q?V=C3=ADctor_Manuel_J=C3=A1quez_Leal?= <email address hidden>

vaapidecode: reset decoder hard when set_format()

set_format() is called by upstream when the stream capabilites has changed.
Before, if the new stream is compatible with the old one the VA decoder was
not destroyed. Nonetheless, with this behavoir, the VA decoder ignores
when the upstreamer parsers gets more details of the stream, such as the
framerate. Hence, when the src caps are negotiates, the further sink caps
updates are ignored.

This patch forces the VA decoder destroying and recreation when set_format()
is called.

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