mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 07:28:53 +00:00
flac, jpeg: fix compiler warning
This commit is contained in:
parent
b4524858be
commit
e0d994c9e1
3 changed files with 2 additions and 7 deletions
|
@ -171,9 +171,6 @@ static gboolean
|
||||||
gst_flac_tag_sink_event (GstPad * pad, GstEvent * event)
|
gst_flac_tag_sink_event (GstPad * pad, GstEvent * event)
|
||||||
{
|
{
|
||||||
gboolean ret;
|
gboolean ret;
|
||||||
GstFlacTag *tag;
|
|
||||||
|
|
||||||
tag = GST_FLAC_TAG (GST_PAD_PARENT (pad));
|
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -963,7 +963,7 @@ gst_jpeg_dec_decode_direct (GstJpegDec * dec, GstVideoFrame * frame)
|
||||||
gint lines, v_samp[3];
|
gint lines, v_samp[3];
|
||||||
guchar *base[3], *last[3];
|
guchar *base[3], *last[3];
|
||||||
gint stride[3];
|
gint stride[3];
|
||||||
guint width, height;
|
guint height;
|
||||||
|
|
||||||
line[0] = y;
|
line[0] = y;
|
||||||
line[1] = u;
|
line[1] = u;
|
||||||
|
@ -976,7 +976,6 @@ gst_jpeg_dec_decode_direct (GstJpegDec * dec, GstVideoFrame * frame)
|
||||||
if (G_UNLIKELY (v_samp[0] > 2 || v_samp[1] > 2 || v_samp[2] > 2))
|
if (G_UNLIKELY (v_samp[0] > 2 || v_samp[1] > 2 || v_samp[2] > 2))
|
||||||
goto format_not_supported;
|
goto format_not_supported;
|
||||||
|
|
||||||
width = GST_VIDEO_FRAME_WIDTH (frame);
|
|
||||||
height = GST_VIDEO_FRAME_HEIGHT (frame);
|
height = GST_VIDEO_FRAME_HEIGHT (frame);
|
||||||
|
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
|
|
|
@ -511,7 +511,7 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
|
||||||
{
|
{
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
GstJpegEnc *jpegenc;
|
GstJpegEnc *jpegenc;
|
||||||
guint height, width;
|
guint height;
|
||||||
guchar *base[3], *end[3];
|
guchar *base[3], *end[3];
|
||||||
guint stride[3];
|
guint stride[3];
|
||||||
gint i, j, k;
|
gint i, j, k;
|
||||||
|
@ -528,7 +528,6 @@ gst_jpegenc_chain (GstPad * pad, GstBuffer * buf)
|
||||||
goto invalid_frame;
|
goto invalid_frame;
|
||||||
|
|
||||||
height = GST_VIDEO_FRAME_HEIGHT (&frame);
|
height = GST_VIDEO_FRAME_HEIGHT (&frame);
|
||||||
width = GST_VIDEO_FRAME_WIDTH (&frame);
|
|
||||||
|
|
||||||
GST_LOG_OBJECT (jpegenc, "got buffer of %lu bytes",
|
GST_LOG_OBJECT (jpegenc, "got buffer of %lu bytes",
|
||||||
gst_buffer_get_size (buf));
|
gst_buffer_get_size (buf));
|
||||||
|
|
Loading…
Reference in a new issue