[Tizen-submit] 3382: Changes to Tizen:2.1:Main/gst-openmax

noreply at tizen.org noreply at tizen.org
Fri Apr 26 14:54:32 GMT 2013


Hi,
Jinkun Jang have made the following changes to gst-openmax in project Tizen:2.1:Main. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #3382

  submit:       Tizen:2.1:Main:build/gst-openmax(cleanup) -> Tizen:2.1:Main


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: upload latest
Git project: framework/multimedia/gst-openmax
Tag: submit/tizen_2.1/20130426.145457
Commit: aa196bc add output buffer duration

State:   new        2013-04-26T07:25:10 tizenrobot
Comment: <no comment>
spec files:
-----------
--- gst-openmax.spec
+++ gst-openmax.spec
@@ -2,8 +2,8 @@
 Name:       gst-openmax
 Summary:    GStreamer plug-in that allows communication with OpenMAX IL components
 Version:    0.10.1
-Release:    5
-VCS:        framework/multimedia/gst-openmax#2.1_release-0-g586c25d
+Release:    6
+VCS:        framework/multimedia/gst-openmax#submit/tizen_2.1/20130426.145457-0-gaa196bc
 Group:      Application/Multimedia
 License:    LGPLv2.1
 Source0:    %{name}-%{version}.tar.gz

other changes:
--------------

++++++ gst-openmax-0.10.1.tar.gz
--- /omx/gstomx_base_filter.c
+++ /omx/gstomx_base_filter.c
@@ -514,6 +514,9 @@
     }
   }
 
+  /* set average duration for memsink. need to check */
+  GST_BUFFER_DURATION(buf) = self->duration;
+
   GST_LOG_OBJECT (self, "OUT_BUFFER: timestamp = %" GST_TIME_FORMAT " size = %lu",
       GST_TIME_ARGS(GST_BUFFER_TIMESTAMP (buf)), GST_BUFFER_SIZE (buf));
   ret = gst_pad_push (self->srcpad, buf);
@@ -1169,6 +1172,7 @@
   self->use_state_tuning = FALSE;
   self->adapter_size = 0;
   self->adapter = NULL;
+  self->duration = 0;
 
   self->gomx = gstomx_core_new (self, G_TYPE_FROM_CLASS (g_class));
   self->in_port = g_omx_core_new_port (self->gomx, 0);
--- /omx/gstomx_base_filter.h
+++ /omx/gstomx_base_filter.h
@@ -131,6 +131,9 @@
 
   GstAdapter *adapter;  /* adapter */
   guint adapter_size;
+
+  /* MODIFICATION: set output buffer duration as average */
+  GstClockTime duration;
 };
 
 struct GstOmxBaseFilterClass
--- /omx/gstomx_base_videodec.c
+++ /omx/gstomx_base_videodec.c
@@ -213,6 +213,8 @@
       self->framerate_num = gst_value_get_fraction_numerator (framerate);
       self->framerate_denom = gst_value_get_fraction_denominator (framerate);
     }
+    omx_base->duration = gst_util_uint64_scale_int (GST_SECOND, self->framerate_denom, self->framerate_num);
+    GST_INFO_OBJECT (self, "set average duration= %"GST_TIME_FORMAT, GST_TIME_ARGS (omx_base->duration));
   }
 
   G_OMX_INIT_PARAM (param);
--- /omx/gstomx_h264dec.c
+++ /omx/gstomx_h264dec.c
@@ -404,6 +404,8 @@
       self->framerate_num = gst_value_get_fraction_numerator (framerate);
       self->framerate_denom = gst_value_get_fraction_denominator (framerate);
     }
+    omx_base->duration = gst_util_uint64_scale_int (GST_SECOND, self->framerate_denom, self->framerate_num);
+    GST_INFO_OBJECT (self, "set average duration= %"GST_TIME_FORMAT, GST_TIME_ARGS (omx_base->duration));
   }
 
   G_OMX_INIT_PARAM (param);
--- /packaging/gst-openmax.spec
+++ /packaging/gst-openmax.spec
@@ -2,7 +2,7 @@
 Name:       gst-openmax
 Summary:    GStreamer plug-in that allows communication with OpenMAX IL components
 Version:    0.10.1
-Release:    5
+Release:    6
 Group:      Application/Multimedia
 License:    LGPLv2.1
 Source0:    %{name}-%{version}.tar.gz


More information about the Tizen-submit mailing list