GNOME Bugzilla – Bug 735581
imagefreeze: Remove impossible error condition
Last modified: 2014-08-28 11:56:22 UTC
Removing unreachable code in the function gst_image_freeze_sink_chain() once EOS is passed, the GstPad rejects the next request and if(self->buffer) will never be satisfied. Replacing it by returning error, incase GstPad does not reject the request
Created attachment 284669 [details] [review] Attaching proposed patch
Review of attachment 284669 [details] [review]: Please write the commit messages in the style the others are: elementname: Short description long description over multiple lines https://bugzilla.gnome.org/1234567 ::: gst/imagefreeze/gstimagefreeze.c @@ +670,3 @@ GstImageFreeze *self = GST_IMAGE_FREEZE (parent); + g_return_val_if_fail ((self->buffer == NULL), GST_FLOW_ERROR); The () around the condition are not needed
Created attachment 284678 [details] [review] Updated the commit message and removed '(', ')' Thanks for the review Have updated the commit message.
commit d46631c5c7312ad613397f8238c7a9714ae3ae94 Author: Vineeth T M <vineeth.tm@samsung.com> Date: Thu Aug 28 16:13:29 2014 +0530 imagefreeze: Remove impossible error condition We return EOS after the first buffer, and GstPad will make sure now that we won't get any other buffer afterwards until a flush happens. No need to check for it ourselves. https://bugzilla.gnome.org/show_bug.cgi?id=735581