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

Ensure input stream is closed on error - addresses issue #95 #125

Closed
wants to merge 3 commits into from
Closed

Ensure input stream is closed on error - addresses issue #95 #125

wants to merge 3 commits into from

Conversation

deeprave
Copy link

NOTE: Someone with more experience than I in glib/gobject virtual functions needs to review this to ensure that things are being done correctly. There may be more cases where the gst_worker_close() function should be called, this code handles the specific error case only.

  • Add a "virtual" close function to the gstworker class, call this when error is handled
  • Add a "virtual" close function to the gsocketinputstream class, which ensures that the socket is closed rather than relying on an unref at finalize
  • Add video caps to inputsrc pipeline so that video format errors are detected and handled directly
  • Add a kludge to redirect warnings that are actually errors to the correct handler

@mithro
Copy link
Member

mithro commented Jan 13, 2015

Can you take a look at #124 and then we can rebase this change onto it.

@deeprave
Copy link
Author

This pull request includes almost the same change, sans the non-empty caps string for audio (which is not actually used).

@mithro
Copy link
Member

mithro commented Jan 13, 2015

@deeprave
Copy link
Author

Yep, correct - I missed the change to the audioinput src

@mithro mithro added this to the At TimVideos Sprints milestone Jan 13, 2015
@mithro mithro self-assigned this Jan 13, 2015
@mithro
Copy link
Member

mithro commented Jan 13, 2015

We should rebase this onto #126 once we are happy with that request.

@deeprave
Copy link
Author

See my comments on #126.

 * Add a "virtual" close function to the gstworker class, call this when error is handled
 * Add a "virtual" close function to the gsocketinputstream class, which ensures
   that the socket is closed rather than relying on unref at finalize
 * Add video caps to inputsrc pipeline so that video format errors are
   detected and handled directly
 * Add a kludge to redirect warnings that are actually errors to the correct handler
@mithro
Copy link
Member

mithro commented Jan 15, 2015

This looks good now, should I merge?

@mithro
Copy link
Member

mithro commented Jan 15, 2015

@deeprave can you rebase this onto master so we can merge it?

David Nugent added 2 commits January 16, 2015 13:29
 * Add a "virtual" close function to the gstworker class, call this when error is handled
 * Add a "virtual" close function to the gsocketinputstream class, which ensures
   that the socket is closed rather than relying on unref at finalize
 * Add video caps to inputsrc pipeline so that video format errors are
   detected and handled directly
 * Add a kludge to redirect warnings that are actually errors to the correct handler
…deeprave/gst-switch into close-pipeline-on-input-error

Conflicts:
	tools/gstworker.c
@deeprave
Copy link
Author

post rebase, doing tests atm

@mithro
Copy link
Member

mithro commented Jan 16, 2015

Happy for me to merge it?

@deeprave
Copy link
Author

Travis says there are still conflicts in tools/gstworker.c, but this should already be fixed in the rebase? github seems happy about it though.

@mithro
Copy link
Member

mithro commented Jan 16, 2015

Looks like you did a merge rather than a rebase here.

@deeprave
Copy link
Author

Yep

deeprave pushed a commit that referenced this pull request Jan 16, 2015
 * Add a "virtual" close function to the gstworker class, call this when error is handled
 * Add a "virtual" close function to the gsocketinputstream class, which ensures
   that the socket is closed rather than relying on unref at finalize
 * Add video caps to inputsrc pipeline so that video format errors are
   detected and handled directly
 * Add a kludge to redirect warnings that are actually errors to the correct handler

Merging #125
@mithro
Copy link
Member

mithro commented Jan 16, 2015

Merged in 50c55fa

@mithro mithro closed this Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants