Revert "enable trustzone config in gstbasesrc" 99/100999/1
authorHeechul Jeon <heechul.jeon@samsung.com>
Wed, 30 Nov 2016 05:22:04 +0000 (21:22 -0800)
committerHeechul Jeon <heechul.jeon@samsung.com>
Wed, 30 Nov 2016 05:22:04 +0000 (21:22 -0800)
This reverts commit afc652bb9fdcc86f2d0a0f3bd210dc871432bfea.

Change-Id: I48b319171a1d8785b4e76e16e284d88fe933feeb

libs/gst/base/gstbasesrc.c
libs/gst/base/gstbasesrc.h
packaging/gstreamer.spec

index 70f48c9..31ac75e 100644 (file)
@@ -2503,17 +2503,7 @@ again:
   if (G_UNLIKELY (g_atomic_int_get (&src->priv->has_pending_eos))) {
     if (ret == GST_FLOW_OK) {
       if (*buf == NULL)
-      {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-        /*tzappsrc patch : release handle when unref res_buf*/
-        if(bclass->tz_src_release_handle)
-        {
-          GST_INFO_OBJECT (src, "tzappsrc release the handle");
-          bclass->tz_src_release_handle(src,res_buf);
-        }
-#endif
         gst_buffer_unref (res_buf);
-      }
     }
     src->priv->forced_eos = TRUE;
     goto eos;
@@ -2572,18 +2562,7 @@ again:
        * it got unlocked because we did a state change. In any case, get rid of
        * the buffer. */
       if (*buf == NULL)
-      {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-        /*tzappsrc patch : release handle when unref res_buf*/
-        GstBaseSrcClass *klass = GST_BASE_SRC_GET_CLASS(src);
-        if(klass->tz_src_release_handle)
-        {
-          GST_INFO_OBJECT (src, "tzappsrc release the handle");
-          klass->tz_src_release_handle(src,res_buf);
-        }
-#endif
         gst_buffer_unref (res_buf);
-      }
 
       if (!src->live_running) {
         /* We return FLUSHING when we are not running to stop the dataflow also
@@ -2605,18 +2584,7 @@ again:
           (_("Internal clock error.")),
           ("clock returned unexpected return value %d", status));
       if (*buf == NULL)
-      {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-        /*tzappsrc patch : release handle when unref res_buf*/
-        GstBaseSrcClass *klass = GST_BASE_SRC_GET_CLASS(src);
-        if(klass->tz_src_release_handle)
-        {
-          GST_INFO_OBJECT (src, "tzappsrc release the handle");
-          klass->tz_src_release_handle(src,res_buf);
-        }
-#endif
         gst_buffer_unref (res_buf);
-      }
       ret = GST_FLOW_ERROR;
       break;
   }
@@ -2644,18 +2612,7 @@ map_failed:
         (_("Failed to map buffer.")),
         ("failed to map result buffer in WRITE mode"));
     if (*buf == NULL)
-    {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-      /*tzappsrc patch : release handle when unref res_buf*/
-      GstBaseSrcClass *klass = GST_BASE_SRC_GET_CLASS(src);
-      if(klass->tz_src_release_handle)
-      {
-        GST_INFO_OBJECT (src, "tzappsrc release the handle");
-        klass->tz_src_release_handle(src,res_buf);
-      }
-#endif
       gst_buffer_unref (res_buf);
-    }
     return GST_FLOW_ERROR;
   }
 not_started:
@@ -2683,18 +2640,7 @@ flushing:
   {
     GST_DEBUG_OBJECT (src, "we are flushing");
     if (*buf == NULL)
-    {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-      /*tzappsrc patch : release handle when unref res_buf*/
-      GstBaseSrcClass *klass = GST_BASE_SRC_GET_CLASS(src);
-      if(klass->tz_src_release_handle)
-      {
-        GST_INFO_OBJECT (src, "tzappsrc release the handle");
-        klass->tz_src_release_handle(src,res_buf);
-      }
-#endif
       gst_buffer_unref (res_buf);
-    }
     return GST_FLOW_FLUSHING;
   }
 eos:
@@ -2941,15 +2887,6 @@ gst_base_src_loop (GstPad * pad)
 
   ret = gst_pad_push (pad, buf);
   if (G_UNLIKELY (ret != GST_FLOW_OK)) {
-#ifdef TIZEN_FEATURE_TRUSTZONE
-    /*tzappsrc patch : release handle when unref res_buf*/
-    GstBaseSrcClass *klass = GST_BASE_SRC_GET_CLASS(src);
-    if(klass->tz_src_release_handle)
-    {
-      GST_INFO_OBJECT (src, "tzappsrc release the handle");
-      klass->tz_src_release_handle(src,buf);
-    }
-#endif
     if (ret == GST_FLOW_NOT_NEGOTIATED) {
       goto not_negotiated;
     }
index 190dc48..1167cd3 100644 (file)
@@ -231,12 +231,6 @@ struct _GstBaseSrcClass {
 
   /*< private >*/
   gpointer       _gst_reserved[GST_PADDING_LARGE];
-#ifdef TIZEN_FEATURE_TRUSTZONE
-  /*tzappsrc patch*/
-  int (*tz_flush) (GstBaseSrc *src, unsigned int handle);
-  int (*tz_src_flush) (GstBaseSrc *src);
-  int (*tz_src_release_handle) (GstBaseSrc *src, GstBuffer *buf);
-#endif
 };
 
 GType gst_base_src_get_type (void);
index 9b146a1..1442e42 100644 (file)
@@ -73,7 +73,6 @@ export CFLAGS="%{optflags} \
        -DTIZEN_FEATURE_QUEUE_MODIFICATION\
 %if "%{?profile}" == "tv"
        -DTIZEN_PROFILE_TV\
-       -DTIZEN_FEATURE_TRUSTZONE\
 %endif
        -fno-strict-aliasing"