summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2018-09-20 14:44:09 -0400
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2019-01-25 00:50:06 +0000
commit4159ca2bc5d7c4f4f20121145b3e0526be1a44ce (patch)
treea273c3ad4427052c31147634698ff020f1c0c558
parent150e7271aba350a3bfd00ad151d236aebb6ab7db (diff)
downloadgst-omx-4159ca2bc5d7c4f4f20121145b3e0526be1a44ce.tar.gz
omxvideodec: Remove dead code
The omxvideodec base class have a totally unused prepare_frame() vritual function, remove it.
-rw-r--r--omx/gstomxvideodec.c15
-rw-r--r--omx/gstomxvideodec.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
index f68911e..4be7dfc 100644
--- a/omx/gstomxvideodec.c
+++ b/omx/gstomxvideodec.c
@@ -2749,7 +2749,6 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
{
GstOMXAcquireBufferReturn acq_ret = GST_OMX_ACQUIRE_BUFFER_ERROR;
GstOMXVideoDec *self;
- GstOMXVideoDecClass *klass;
GstOMXPort *port;
GstOMXBuffer *buf;
GstBuffer *codec_data = NULL;
@@ -2761,7 +2760,6 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
guint memory_idx = 0; /* only used in dynamic buffer mode */
self = GST_OMX_VIDEO_DEC (decoder);
- klass = GST_OMX_VIDEO_DEC_GET_CLASS (self);
GST_DEBUG_OBJECT (self, "Handling frame");
@@ -2788,19 +2786,6 @@ gst_omx_video_dec_handle_frame (GstVideoDecoder * decoder,
timestamp = frame->pts;
duration = frame->duration;
-
- if (klass->prepare_frame) {
- GstFlowReturn ret;
-
- ret = klass->prepare_frame (self, frame);
- if (ret != GST_FLOW_OK) {
- GST_ERROR_OBJECT (self, "Preparing frame failed: %s",
- gst_flow_get_name (ret));
- gst_video_codec_frame_unref (frame);
- return ret;
- }
- }
-
port = self->dec_in_port;
size = gst_buffer_get_size (frame->input_buffer);
diff --git a/omx/gstomxvideodec.h b/omx/gstomxvideodec.h
index eec3525..df441d9 100644
--- a/omx/gstomxvideodec.h
+++ b/omx/gstomxvideodec.h
@@ -110,7 +110,6 @@ struct _GstOMXVideoDecClass
gboolean (*is_format_change) (GstOMXVideoDec * self, GstOMXPort * port, GstVideoCodecState * state);
gboolean (*set_format) (GstOMXVideoDec * self, GstOMXPort * port, GstVideoCodecState * state);
- GstFlowReturn (*prepare_frame) (GstOMXVideoDec * self, GstVideoCodecFrame *frame);
};
GType gst_omx_video_dec_get_type (void);