fix compilation
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 20 Jun 2012 08:39:24 +0000 (10:39 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 20 Jun 2012 08:39:24 +0000 (10:39 +0200)
ext/mpeg2dec/gstmpeg2dec.c
ext/x264/gstx264enc.c

index b9c1ff7601b983bb887ecd2fdee23aa6158eae87..b6e7ef5aa5663b935c88eda75058bdc13683238c 100644 (file)
@@ -355,11 +355,8 @@ gst_mpeg2dec_alloc_sized_buf (GstMpeg2dec * mpeg2dec, guint size,
 {
   GstFlowReturn ret = GST_FLOW_OK;
   GstVideoCodecState *state;
-  GstVideoInfo *vinfo, *dinfo;
 
   state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (mpeg2dec));
-  vinfo = &state->info;
-  dinfo = &mpeg2dec->decoded_info;
 
   if (!mpeg2dec->need_cropping || mpeg2dec->has_cropping) {
     ret =
@@ -797,7 +794,6 @@ handle_slice (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info)
   const mpeg2_picture_t *picture;
   gboolean key_frame = FALSE;
   GstVideoCodecState *state;
-  GstVideoInfo *vinfo, *dinfo;
 
   GST_DEBUG_OBJECT (mpeg2dec, "picture slice/end %p %p %p %p",
       info->display_fbuf, info->display_picture, info->current_picture,
@@ -838,8 +834,6 @@ handle_slice (GstMpeg2dec * mpeg2dec, const mpeg2_info_t * info)
   }
 
   state = gst_video_decoder_get_output_state (GST_VIDEO_DECODER (mpeg2dec));
-  vinfo = &state->info;
-  dinfo = &mpeg2dec->decoded_info;
 
   /* do cropping if the target region is smaller than the input one */
   if (mpeg2dec->need_cropping && !mpeg2dec->has_cropping) {
index 6bbce5cb48db972f31f41c9ceb43ccf387c94336..48a50ca6f3a98fb095eb2f8955e7da98c4b07b24 100644 (file)
@@ -1646,7 +1646,7 @@ gst_x264_enc_encode_frame (GstX264Enc * encoder, x264_picture_t * pic_in,
   x264_nal_t *nal;
   int i_size;
   int encoder_return;
-  GstFlowReturn ret;
+  GstFlowReturn ret = GST_FLOW_OK;
   guint8 *data;
   gboolean update_latency = FALSE;