diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-04 10:01:48 +0100 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-01-04 10:01:48 +0100 |
commit | 47a1da9076a6124659084497dfb079d64cd5b050 (patch) | |
tree | 131ee62a97cc6b3efe6e71acd55059e0e34e5b50 /gst/imagefreeze | |
parent | 03408a475cb5b059702e2a1f702d47b54945f620 (diff) | |
download | gstreamer-plugins-good-47a1da9076a6124659084497dfb079d64cd5b050.tar.gz |
GST_FLOW_UNEXPECTED -> GST_FLOW_EOS
Diffstat (limited to 'gst/imagefreeze')
-rw-r--r-- | gst/imagefreeze/gstimagefreeze.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index 3e122adca..f4c67c76f 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -351,7 +351,7 @@ gst_image_freeze_sink_bufferalloc (GstPad * pad, guint64 offset, guint size, gst_flow_get_name (ret)); } else { /* Let upstream go EOS if we already have a buffer */ - ret = GST_FLOW_UNEXPECTED; + ret = GST_FLOW_EOS; } gst_object_unref (self); @@ -608,7 +608,7 @@ gst_image_freeze_src_event (GstPad * pad, GstEvent * event) &stop_type, &stop); gst_event_unref (event); - flush = !!(flags & GST_SEEK_FLAG_FLUSH); + flush = ! !(flags & GST_SEEK_FLAG_FLUSH); if (format != GST_FORMAT_TIME && format != GST_FORMAT_DEFAULT) { GST_ERROR_OBJECT (pad, "Seek in invalid format: %s", @@ -727,7 +727,7 @@ gst_image_freeze_sink_chain (GstPad * pad, GstBuffer * buffer) GST_DEBUG_OBJECT (pad, "Already have a buffer, dropping"); gst_buffer_unref (buffer); g_mutex_unlock (self->lock); - return GST_FLOW_UNEXPECTED; + return GST_FLOW_EOS; } self->buffer = buffer; |