office-gobmx/avmedia
Stephan Bergmann b512ce255f Make upcasting css::uno::Reference ctor require complete types
The main reason for the "home-grown" UpCast introduced with
904b3d1fce "Up-cast conversion constructor for
css::uno::Reference" in 2013 was probably that we could not yet rely on C++11
std::is_base_of back then.  A (welcome) side effect was that the derived class
could be incomplete.

However, specializations of UpCast relying on whether or not T2 is incomplete
are obviously an ODR violation if the type is incomplete in some TUs and
complete (and derived from T1) in others.  And even if UpCast had internal
linkage, it would still be brittle that its behavior depends on the completeness
of T2 at the point of the template's instantiation, and not necessarily at the
point of use.

That means we should better base that ctor on std::is_base_of (which we can do
now since 39a1edd6fe "Make css::uno::Reference
upcast ctor LIBO_INTERNAL_ONLY"), which causes a compilation error at least on
Clang and GCC if the completeness requirements are not met.  This change fixes
all the cases where types need to be complete now, plus any resulting
loplugin:referencecasting warnings ("the source reference is already a subtype
of the destination reference").

Change-Id: Ieb9e3552e90adbf2c5a5af933dcb872e20661a2f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92950
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-04-27 07:19:30 +02:00
..
inc move InterimItemWindow to svtools 2020-04-22 18:27:24 +02:00
source Make upcasting css::uno::Reference ctor require complete types 2020-04-27 07:19:30 +02:00
util
AllLangMoTarget_avmedia.mk
IwyuFilter_avmedia.yaml tdf#42949 Fix IWYU warnings in avmedia/ 2020-01-30 10:02:09 +01:00
Library_avmedia.mk
Library_avmediagst.mk
Library_avmediaMacAVF.mk
Library_avmediavlc.mk
Library_avmediawin.mk
Makefile
Module_avmedia.mk
README

Audio/Video media implementation.

Provides per-platform implementations of multimedia functionality.
Currently no stream API is provided, only a URI based one, so
streaming has to be wrapped around it via temp files.

Also provides (in source/framework/mediacontrol.cxx) an implementation
of the graphical media playback control that appears in the toolbar /
mediaobject bar when media is selected under the .uno:AVMediaToolBox
item.

== avmedia/gstreamer ==

The avmedia component is implementation of manager service defined in
offapi/com/sun/star/media/. Radek has added implementation based on
gstreamer so that we can add audio and video files into impress
presentation on Linux with gstreamer.

The implementation is pretty straightforward, sometimes it has
problems when gstreamer installation is incomplete.

In the beginning the media files were not embedded, Thorsten added
support for that later.

FUTURE work: it might be worthwhile to revamp the avmedia UI