freeze: Remove dead assignments
authorEdward Hervey <bilboed@bilboed.com>
Thu, 25 Nov 2010 18:06:49 +0000 (19:06 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 25 Nov 2010 18:06:49 +0000 (19:06 +0100)
gst/freeze/gstfreeze.c

index bcb25a8..0d63eb7 100644 (file)
@@ -233,7 +233,6 @@ static GstFlowReturn
 gst_freeze_play (GstPad * pad, GstBuffer * buff)
 {
   GstFreeze *freeze;
-  guint64 cur_offset;
   GstFlowReturn ret = GST_FLOW_OK;
 
   freeze = GST_FREEZE (gst_pad_get_parent (pad));
@@ -243,7 +242,6 @@ gst_freeze_play (GstPad * pad, GstBuffer * buff)
     return GST_FLOW_WRONG_STATE;
   }
 
-  cur_offset = freeze->offset;
   /* If it is working in push mode this function will be called by "_chain"
      and buff will never be NULL. In pull mode this function will be called
      by _loop and buff will be NULL */
@@ -303,10 +301,6 @@ gst_freeze_loop (GstPad * pad)
 static gboolean
 gst_freeze_sink_activate (GstPad * sinkpad)
 {
-  GstFreeze *freeze;
-
-  freeze = GST_FREEZE (GST_PAD_PARENT (sinkpad));
-
   if (gst_pad_check_pull_range (sinkpad)) {
     return gst_pad_activate_pull (sinkpad, TRUE);
   } else {