vaapidecode: log flow error name
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 18 Feb 2015 09:21:35 +0000 (11:21 +0200)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 18 Feb 2015 09:21:35 +0000 (11:21 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=744387

gst/vaapi/gstvaapidecode.c

index 014e1ea..38afb31 100644 (file)
@@ -390,7 +390,8 @@ error_get_meta:
 error_commit_buffer:
     {
         if (ret != GST_FLOW_FLUSHING)
-            GST_ERROR("video sink rejected the video buffer (error %d)", ret);
+            GST_ERROR("video sink rejected the video buffer (error: %s [%d])",
+                gst_flow_get_name (ret), ret);
         gst_video_codec_frame_unref(out_frame);
         return ret;
     }