x264enc: propagate flow return back to base class and upstream
authorTim-Philipp Müller <tim@centricular.net>
Wed, 21 Aug 2013 11:31:23 +0000 (12:31 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 21 Aug 2013 11:35:32 +0000 (12:35 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=705425

ext/x264/gstx264enc.c

index 85dbd369e52cd089c6443b022a8b4bd2ce34a160..df6551ddf50d7ab4eb6c68daba6e5c10760a6be2 100644 (file)
@@ -1937,7 +1937,7 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in,
 out:
   if (frame) {
     gst_x264_enc_dequeue_frame (encoder, frame);
-    gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame);
+    ret = gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (encoder), frame);
   }
 
   return ret;