msdkdec: Remove dead code
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 3 Jul 2018 00:41:58 +0000 (16:41 -0800)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 3 Jul 2018 00:41:58 +0000 (16:41 -0800)
We are not using any ExtendedParams for decoding.

sys/msdk/gstmsdkdec.c
sys/msdk/gstmsdkdec.h

index fb84705..3d641cc 100644 (file)
@@ -203,7 +203,6 @@ gst_msdkdec_close_decoder (GstMsdkDec * thiz, gboolean reset_param)
   }
 
   g_array_set_size (thiz->tasks, 0);
-  g_ptr_array_set_size (thiz->extra_params, 0);
 
   if (reset_param)
     memset (&thiz->param, 0, sizeof (thiz->param));
@@ -304,9 +303,6 @@ gst_msdkdec_init_decoder (GstMsdkDec * thiz)
       thiz->param.mfx.FrameInfo.ChromaFormat ? thiz->param.mfx.
       FrameInfo.ChromaFormat : MFX_CHROMAFORMAT_YUV420;
 
-  thiz->param.NumExtParam = thiz->extra_params->len;
-  thiz->param.ExtParam = (mfxExtBuffer **) thiz->extra_params->pdata;
-
   session = gst_msdk_context_get_session (thiz->context);
   /* validate parameters and allow the Media SDK to make adjustments */
   status = MFXVideoDECODE_Query (session, &thiz->param, &thiz->param);
@@ -1336,7 +1332,6 @@ gst_msdkdec_finalize (GObject * object)
   GstMsdkDec *thiz = GST_MSDKDEC (object);
 
   g_array_unref (thiz->tasks);
-  g_ptr_array_unref (thiz->extra_params);
   g_object_unref (thiz->adapter);
 }
 
@@ -1393,7 +1388,6 @@ gst_msdkdec_init (GstMsdkDec * thiz)
 {
   gst_video_info_init (&thiz->output_info);
   gst_video_info_init (&thiz->non_msdk_pool_info);
-  thiz->extra_params = g_ptr_array_new_with_free_func (g_free);
   thiz->tasks = g_array_new (FALSE, TRUE, sizeof (MsdkDecTask));
   thiz->hardware = PROP_HARDWARE_DEFAULT;
   thiz->async_depth = PROP_ASYNC_DEPTH_DEFAULT;
index 6fe5915..aac5c41 100644 (file)
@@ -90,7 +90,6 @@ struct _GstMsdkDec
   /* MFX context */
   GstMsdkContext *context;
   mfxVideoParam param;
-  GPtrArray *extra_params;
   GArray *tasks;
   guint next_task;