Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gstreamer: set size to appsrc if instantiated #134

Merged
merged 1 commit into from Sep 27, 2018
Merged

Conversation

@ceyusa
Copy link
Contributor

ceyusa commented Sep 24, 2018

No description provided.

@Manishearth
Copy link
Member

Manishearth commented Sep 24, 2018

r=me, waiting for travis

@ferjm
Copy link
Member

ferjm commented Sep 24, 2018

It seems that we can remove PlayerInner.input_size

@@ -195,6 +195,13 @@ impl Player for GStreamerPlayer {

fn set_input_size(&self, size: u64) {
self.inner.lock().unwrap().set_input_size(size);
if let Some(ref mut appsrc) = self.inner.lock().unwrap().appsrc {
if size > 0 {
appsrc.set_size(size as i64);

This comment has been minimized.

@ferjm

ferjm Sep 24, 2018

Member

Should we also set max-bytes here? (i.e. 10% of size)

This comment has been minimized.

@ceyusa

ceyusa Sep 25, 2018

Author Contributor

It seems that we can remove PlayerInner.input_size

If the user sets the input_size() before calling setup() the data will be lost.

Should we also set max-bytes here? (i.e. 10% of size)

I experimented with it yesterday, but it didn't force a quicker metadata extraction. In my opinion, an EOF in the network doesn't mean a EOS in the video processing. We would wait for EOS or an error from the player.

This comment has been minimized.

@ferjm

ferjm Sep 26, 2018

Member

If the user sets the input_size() before calling setup() the data will be lost.

Fair enough. Let's add a comment about that to make sure that we don't remove it in the future.

This comment has been minimized.

@ferjm

ferjm Sep 26, 2018

Member

I experimented with it yesterday, but it didn't force a quicker metadata extraction. In my opinion, an EOF in the network doesn't mean a EOS in the video processing. We would wait for EOS or an error from the player.

For reference, this was fixed by servo/servo@1c73c72

@ceyusa ceyusa force-pushed the ceyusa:master branch from 0eb8ae5 to 196a5fc Sep 27, 2018
@ferjm
Copy link
Member

ferjm commented Sep 27, 2018

It seems that we broke the audio decoder at some point #136

@ferjm ferjm merged commit ab01989 into servo:master Sep 27, 2018
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.