ges: remove dead code
authorLuis de Bethencourt <luis.bg@samsung.com>
Mon, 1 Jun 2015 12:05:25 +0000 (13:05 +0100)
committerLuis de Bethencourt <luis.bg@samsung.com>
Mon, 1 Jun 2015 12:32:47 +0000 (13:32 +0100)
Summary:
No need to recheck if error exists since it has already been checked by the
conditional above.

Coverity CID #1302832

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D200

ges/ges-structured-interface.c

index 28db6a4..efaf798 100644 (file)
@@ -236,7 +236,7 @@ _ges_get_asset_from_timeline (GESTimeline * timeline, GType type,
     if (error && !*error) {
       *error = g_error_new (GES_ERROR, 0,
           "There was an error requesting the asset with id %s and type %s (%s)",
-          id, g_type_name (type), error ? (*error)->message : "unknown");
+          id, g_type_name (type), "unknown");
     }
 
     GST_ERROR