diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-12-21 22:55:49 -0500 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2018-01-08 17:20:52 -0500 |
commit | a46756bd566f7b8b2c78297680a657f5a39e0797 (patch) | |
tree | 405a59fcd617804704e4bf96ae6d1058565f343c /sys | |
parent | 4aa5298f56dbbb87abc3a5d86a93ac84296c9bf1 (diff) |
v4l2videoenc: Remove dead code
gst_v4l2_object_stop() will free and nullify the pool, so the
following if will never be true.
https://bugzilla.gnome.org/show_bug.cgi?id=791338
Diffstat (limited to 'sys')
-rw-r--r-- | sys/v4l2/gstv4l2videoenc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/v4l2/gstv4l2videoenc.c b/sys/v4l2/gstv4l2videoenc.c index 6be1bed38..1783b860a 100644 --- a/sys/v4l2/gstv4l2videoenc.c +++ b/sys/v4l2/gstv4l2videoenc.c @@ -218,11 +218,6 @@ gst_v4l2_video_enc_stop (GstVideoEncoder * encoder) gst_v4l2_object_stop (self->v4l2output); gst_v4l2_object_stop (self->v4l2capture); - if (self->v4l2output->pool) - gst_v4l2_buffer_pool_flush (self->v4l2output->pool); - if (self->v4l2capture->pool) - gst_v4l2_buffer_pool_flush (self->v4l2capture->pool); - if (self->input_state) { gst_video_codec_state_unref (self->input_state); self->input_state = NULL; |