jpegdec: Remove unused variable and use correct decoder variable name

This commit is contained in:
Sebastian Dröge 2014-09-16 11:26:22 +03:00
parent f489beb7c5
commit 90ccd8212a

View file

@ -593,9 +593,8 @@ static gboolean
gst_jpeg_dec_set_format (GstVideoDecoder * dec, GstVideoCodecState * state)
{
GstJpegDec *jpeg = GST_JPEG_DEC (dec);
GstVideoInfo *info = &state->info;
if (decoder->input_segment.format == GST_FORMAT_TIME)
if (dec->input_segment.format == GST_FORMAT_TIME)
gst_video_decoder_set_packetized (dec, TRUE);
else
gst_video_decoder_set_packetized (dec, FALSE);