aout: fix assertion on error path from transcode
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 24 May 2014 04:45:16 +0000 (12:45 +0800)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 24 May 2014 04:45:51 +0000 (12:45 +0800)
src/audio_output/filters.c

index 8af9cf0..e6a6955 100644 (file)
@@ -475,7 +475,8 @@ aout_filters_t *aout_FiltersNew (vlc_object_t *obj,
 
 error:
     aout_FiltersPipelineDestroy (filters->tab, filters->count);
-    var_DelCallback (obj, "visual", VisualizationCallback, NULL);
+    if (request_vout != NULL)
+        var_DelCallback (obj, "visual", VisualizationCallback, NULL);
     free (filters);
     return NULL;
 }