mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
avvidenc: Fix compiler warning
gstavvidenc.c: In function 'gst_ffmpegvidenc_flush_buffers': gstavvidenc.c:733:7: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement] GstFFMpegVidEncClass *oclass = ^ cc1: all warnings being treated as errors
This commit is contained in:
parent
e964dcdb02
commit
8271b2755a
1 changed files with 1 additions and 1 deletions
|
@ -728,13 +728,13 @@ gst_ffmpegvidenc_flush_buffers (GstFFMpegVidEnc * ffmpegenc, gboolean send)
|
||||||
ret = avcodec_encode_video2 (ffmpegenc->context, pkt, NULL, &have_data);
|
ret = avcodec_encode_video2 (ffmpegenc->context, pkt, NULL, &have_data);
|
||||||
|
|
||||||
if (ret < 0) { /* there should be something, notify and give up */
|
if (ret < 0) { /* there should be something, notify and give up */
|
||||||
g_slice_free (AVPacket, pkt);
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GstFFMpegVidEncClass *oclass =
|
GstFFMpegVidEncClass *oclass =
|
||||||
(GstFFMpegVidEncClass *) (G_OBJECT_GET_CLASS (ffmpegenc));
|
(GstFFMpegVidEncClass *) (G_OBJECT_GET_CLASS (ffmpegenc));
|
||||||
GST_WARNING_OBJECT (ffmpegenc,
|
GST_WARNING_OBJECT (ffmpegenc,
|
||||||
"avenc_%s: failed to flush buffer", oclass->in_plugin->name);
|
"avenc_%s: failed to flush buffer", oclass->in_plugin->name);
|
||||||
#endif /* GST_DISABLE_GST_DEBUG */
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
|
g_slice_free (AVPacket, pkt);
|
||||||
gst_video_codec_frame_unref (frame);
|
gst_video_codec_frame_unref (frame);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue