basevideodecoder: Set the correct lists to NULL after freeing
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 11 Jul 2011 07:35:25 +0000 (09:35 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Jul 2011 06:36:00 +0000 (08:36 +0200)
omx/gstbasevideodecoder.c

index 487b6cd..8b6c344 100644 (file)
@@ -917,11 +917,11 @@ gst_base_video_decoder_clear_queues (GstBaseVideoDecoder * dec)
   dec->decode = NULL;
   g_list_foreach (dec->parse, (GFunc) gst_mini_object_unref, NULL);
   g_list_free (dec->parse);
-  dec->decode = NULL;
+  dec->parse = NULL;
   g_list_foreach (dec->parse_gather, (GFunc) gst_base_video_codec_free_frame,
       NULL);
   g_list_free (dec->parse_gather);
-  dec->decode = NULL;
+  dec->parse_gather = NULL;
 }
 
 static void