Refine code for seek fix
authorZhao Halley <halley.zhao@intel.com>
Sat, 20 Apr 2013 07:54:16 +0000 (15:54 +0800)
committerZhao Halley <halley.zhao@intel.com>
Mon, 22 Apr 2013 07:51:40 +0000 (15:51 +0800)
commit95a0cd8ae04b9bdfef4e0f95f87884c3a8a52fc2
tree90b179eda7307087336671d0573283a6e8e8aa90
parent289e80df241a77d7b04b0a432546300beb589fb1
Refine code for seek fix

1. There are 'try_again' in two level
   The 1st one is (condition wait) wake up when a surface is available,
     in gstvaapidecode.c
   The 2nd one is (potentially) 'try_again' for the first time decode_step()
     when asking for a decoded video surface (gst_vaapi_decoder_get_surface).
     in gstvaapidecoder.c
2. The 1st one pass 'try_again' to the second one, not reverse. So:
   The 1st one needn't pass address of 'try_again' to the 2nd one.
   The 2nd one needn't check GST_VAAPI_DECODER_STATUS_ERROR_NO_SURFACE to
     set 'try_again'. it's the 1st's role and responsibility.
gst-libs/gst/vaapi/gstvaapidecoder.c [changed mode: 0644->0755]
gst-libs/gst/vaapi/gstvaapidecoder.h [changed mode: 0644->0755]
gst/vaapi/gstvaapidecode.c
tests/test-decode.c [changed mode: 0644->0755]
tests/test-subpicture.c [changed mode: 0644->0755]