Re: RFR: 8267551: Support loading images from inline data-URIs [v17]
On Wed, 9 Jun 2021 14:20:41 GMT, Michael Strauß wrote: >> This PR adds support for loading images from [inline data >> URIs](https://en.wikipedia.org/wiki/Data_URI_scheme), which is also widely >> supported by web browsers. This enables developers to package small images >> in CSS files, rather than separately deploying the images alongside the CSS >> file. > > Michael Strauß has updated the pull request incrementally with one additional > commit since the last revision: > > doc I reviewed and tested the implementation. I left a couple questions inline. modules/javafx.graphics/src/main/java/com/sun/javafx/iio/ImageStorage.java line 314: > 312: } > 313: > 314: theStream = new > ByteArrayInputStream(dataUri.getData()); By parsing the Data URI before calling `ImageTools.createInputStream` our internal handling will take precedence over a custom handler that an application might have installed. I'm not sure this is what we want. modules/javafx.graphics/src/main/java/com/sun/javafx/util/DataURI.java line 185: > 183: @Override > 184: public String toString() { > 185: if (originalData.length() < 30) { I think this should be `< 32`. As it stands, if length is `30` or `31` the data portion of the string will be 31 characters with either 2 or 3 middle chars replaced by `"..."`. In those cases it would be better to just use the original data. - PR: https://git.openjdk.java.net/jfx/pull/508
Re: RFR: 8268219: Investigate gstmpegaudioparse PTS issue
On Sat, 12 Jun 2021 00:10:55 GMT, Alexander Matveev wrote: > - Reverted JDK-8268152 fix in gstbaseparse.c, since it is no longer needed. > - Our hlsprogressbuffer outputs buffers in time format, but without any PTS. > After GStreamer update mpregparser no longer tries to figure out timestamps > if stream in time format and it will assume that upstream provides > timestamps. Fixed by providing starting timestamp at the beginning or after > seek. In this case mpegparser able to figure out timestamps and will provide > them for each buffer downstream. > - Segment start was also incorrect it should be seek position, otherwise > after seek playback waits for seek time. For example if we seek to 2 min, > mediaplayer hangs for 2 min and only after that resumes playback. I think it > worked before, since mpegparser handled PTS before. @sashamatveev Since I presume you are done investigating the problem, can you change the title of the JBS bug and this PR to be more description of the problem being fixed? - PR: https://git.openjdk.java.net/jfx/pull/532