[Tizen-submit] 2529: Changes to Tizen:2.0:IVI/gstreamer-vaapi

noreply at tizen.org noreply at tizen.org
Sat Apr 20 08:41:11 GMT 2013


Hi,
Zhao Halley have made the following changes to gstreamer-vaapi in project Tizen:2.0:IVI. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #2529

  submit:       Tizen:2.0:IVI:build/gstreamer-vaapi(cleanup) -> Tizen:2.0:IVI


Message:
Submitter: Zhao Halley <halley.zhao at intel.com>
Comments: 
Git project: profile/ivi/gstreamer-vaapi
Tag: submit/2.0/20130420.083526
Commit: 6e84f26 Fix seek issue

State:   new        2013-04-20T01:11:52 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- gstreamer-vaapi.spec
+++ gstreamer-vaapi.spec
@@ -1,7 +1,7 @@
 Name:       gstreamer-vaapi
 Version:    0.4.0.02.f9604f48
 Release:    0
-VCS:        profile/ivi/gstreamer-vaapi#submit/2.0/20130419.104529-0-g1cdbcfe
+VCS:        profile/ivi/gstreamer-vaapi#submit/2.0/20130420.083526-0-g6e84f26
 Summary:    VA-API based plugins for GStreamer and helper libraries
 Group:      Multimedia/Gstreamer
 License:    LGPLv2+ and GPLv2+

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

++++++ gstreamer-vaapi-0.4.0.02.f9604f48.tar.bz2
--- /gst-libs/gst/vaapi/gstvaapidecoder.c
+++ /gst-libs/gst/vaapi/gstvaapidecoder.c
@@ -90,7 +90,7 @@
 }
 
 static GstVaapiDecoderStatus
-decode_step(GstVaapiDecoder *decoder)
+decode_step(GstVaapiDecoder *decoder, gboolean *try_again)
 {
     GstVaapiDecoderStatus status;
     GstBuffer *buffer;
@@ -101,7 +101,15 @@
         return status;
 
     do {
-        buffer = pop_buffer(decoder);
+        if (*try_again){
+            buffer = gst_buffer_new();
+            if (buffer){
+                gst_buffer_set_data(buffer, NULL, 0);
+            }
+            *try_again = FALSE;
+        }else{
+            buffer = pop_buffer(decoder);
+        }
         if (!buffer)
             return GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
 
@@ -413,6 +421,7 @@
  * gst_vaapi_decoder_get_surface:
  * @decoder: a #GstVaapiDecoder
  * @pstatus: return location for the decoder status, or %NULL
+ * @try_again: a #gboolean
  *
  * Flushes encoded buffers to the decoder and returns a decoded
  * surface, if any.
@@ -424,7 +433,8 @@
 GstVaapiSurfaceProxy *
 gst_vaapi_decoder_get_surface(
     GstVaapiDecoder       *decoder,
-    GstVaapiDecoderStatus *pstatus
+    GstVaapiDecoderStatus *pstatus,
+    gboolean              try_again
 )
 {
     GstVaapiSurfaceProxy *proxy;
@@ -438,7 +448,7 @@
     proxy = pop_surface(decoder);
     if (!proxy) {
         do {
-            status = decode_step(decoder);
+            status = decode_step(decoder, &try_again);
         } while (status == GST_VAAPI_DECODER_STATUS_SUCCESS);
         proxy = pop_surface(decoder);
     }
--- /gst-libs/gst/vaapi/gstvaapidecoder.h
+++ /gst-libs/gst/vaapi/gstvaapidecoder.h
@@ -129,7 +129,8 @@
 GstVaapiSurfaceProxy *
 gst_vaapi_decoder_get_surface(
     GstVaapiDecoder       *decoder,
-    GstVaapiDecoderStatus *pstatus
+    GstVaapiDecoderStatus *pstatus,
+    gboolean              try_again
 );

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list