public override void stop()
 {
     if (t != null)
     {
         try
         {
             inputStream.Close();
         }
         catch (IOException ignore) { }
         t.Interrupt();
         try
         {
             t.Join();
         }
         catch (InterruptedException e) { }
         t = null;
     }
 }
Esempio n. 2
0
 /** Entry point. */
 public static void runTest(ExtractMpegFrames obj)
 {
     try
     {
         var wrapper         = new ExtractMpegFramesWrapper(obj);
         Java.Lang.Thread th = new Java.Lang.Thread(wrapper, "codec test");
         th.Start();
         th.Join();
         if (wrapper.mThrowable != null)
         {
             throw wrapper.mThrowable;
         }
     }
     catch (System.Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }