<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -346,6 +346,8 @@ gst_shvideo_enc_dispose (GObject * object)
   void *iomem;
   GST_LOG(&quot;%s called&quot;,__FUNCTION__);
 
+  sh_ceu_stop_capturing(shvideoenc-&gt;ainfo.ceu);
+
   if (shvideoenc-&gt;encoder!=NULL)
   {
     shcodecs_encoder_close(shvideoenc-&gt;encoder);
@@ -370,12 +372,15 @@ gst_shvideo_enc_dispose (GObject * object)
     close (fd);
   }
 
-  sh_ceu_stop_capturing(shvideoenc-&gt;ainfo.ceu);
   shveu_close();
   sh_ceu_close(shvideoenc-&gt;ainfo.ceu);
 
   uiomux_close (shvideoenc-&gt;uiomux);
 
+  pthread_cancel (shvideoenc-&gt;enc_thread);
+  pthread_cancel (shvideoenc-&gt;capture_thread);
+  pthread_cancel (shvideoenc-&gt;blit_thread);
+
   pthread_mutex_destroy(&amp;shvideoenc-&gt;capture_start_mutex);
   pthread_mutex_destroy(&amp;shvideoenc-&gt;capture_end_mutex);
   pthread_mutex_destroy(&amp;shvideoenc-&gt;blit_mutex);</diff>
      <filename>gstshvideocapenc.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4a6315f0c3d330280e9b829b6509f5b1c2dd6e18</id>
    </parent>
  </parents>
  <author>
    <name>Takashi Namiki</name>
    <email>takashi.namiki@renesas.com</email>
  </author>
  <url>http://github.com/kfish/gst-sh-mobile/commit/90bac09017ca58c2e60183710a27debbb5da0003</url>
  <id>90bac09017ca58c2e60183710a27debbb5da0003</id>
  <committed-date>2009-11-04T23:13:03-08:00</committed-date>
  <authored-date>2009-11-04T22:31:44-08:00</authored-date>
  <message>Fix disposal: ceu_stop location, cancel threads

Signed-off-by: Conrad Parker &lt;conrad@metadecks.org&gt;</message>
  <tree>eead4865e2971227eec88010829e4640ea498f57</tree>
  <committer>
    <name>Conrad Parker</name>
    <email>conrad@metadecks.org</email>
  </committer>
</commit>
