returing from the constructor prematurely is not a good idea because the
settings pointer may be left uninitialized, also issue a general warning
if mpv_create() failed
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kcompactdisc was remove because there is no use for it in the
current set of applications supported, if it is needed it will
need some work to make it use KMediaPlayer or whatever.
the Plasma VideoWidget class was dropped because custom widgets
(at some point) will be dropped unless absolutely needed and
hopefully getting rid of the heavy-weight QML stuff.
the new KMediaPlayer and KMediaWidgets classes are experimental
but they have been tested and they work as they should.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
also for debug builds an assert has been added to ensure that
memory has been freed as many times as it has been allocated
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
the automatically generated widgets source were not included in
the target sources because the sources list variable was overriden
but should have not been the case
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
the Java applet viewer has not been touch for a long time and I
suppose nobody will. the image plugin is useless when gwenview is
installed which is the image viewer for KDE.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
for the Thai language it get's it right most of the time, the
point is to avoid dlopen-ing the library and resolving the symbols
at runtime avoiding overheat and dependency on the library by
making use of what Qt4/Katie offers. the actual compile-time check
for libthai was not in place so it was always probed for at
runtime which can cause all kinds of problems and leaves open an
attack vector.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
they are small enough (usually ~200KB) to not cause major increase
of system requirements as QCache is used and it defaults to not
more than 10 entries. worst case scenario they can be compressed
via qCompress() but that will make things a bit more complicated.
the change prevents exposure of the page caches so that
overwriting them for malicious purposes is less likely to happen.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
this allows to use char* instead of uchar* to avoid some casts,
also incremental requests are no more and the data is handled in
one go to avoid a lot of small memory allocations and extra array
for each image. it does perform slitely worse but with this a lot
more image formats can be handled with higher quality (slitely)
and even more correct, some images previously did not show
at all because of the broken image handlers.
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>