omxvideoenc: Improve debug output when setting codec state due to new codec_data...
authorGraham Leggett <minfrin@sharp.fm>
Sun, 11 Jun 2017 12:32:01 +0000 (12:32 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 12 Jun 2017 06:56:20 +0000 (09:56 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=783657

omx/gstomxvideoenc.c

index c54d8a7..65a1ab1 100644 (file)
@@ -576,6 +576,8 @@ gst_omx_video_enc_handle_output_frame (GstOMXVideoEnc * self, GstOMXPort * port,
     gst_video_codec_state_unref (state);
     if (!gst_video_encoder_negotiate (GST_VIDEO_ENCODER (self))) {
       gst_video_codec_frame_unref (frame);
+      GST_ERROR_OBJECT (self,
+          "Downstream element refused to negotiate codec_data in the caps");
       return GST_FLOW_NOT_NEGOTIATED;
     }
     flow_ret = GST_FLOW_OK;