ges: Fix compilation
authorThibault Saunier <thibault.saunier@collabora.com>
Thu, 18 Apr 2013 21:59:52 +0000 (18:59 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 18 Apr 2013 21:59:52 +0000 (18:59 -0300)
ges/ges-timeline-pipeline.c

index 0469526..c544d42 100644 (file)
@@ -1074,7 +1074,8 @@ ges_timeline_pipeline_save_thumbnail (GESTimelinePipeline * self, int width, int
   if (gst_buffer_map (b, &map_info, GST_MAP_READ)) {
     if (!g_file_set_contents (location, (const char *) map_info.data,
             map_info.size, error)) {
-      GST_WARNING ("Could not save thumbnail: %s", err->message);
+      GST_WARNING ("Could not save thumbnail: %s",
+          error ? (*error)->message : "");
       res = FALSE;
     }
   }