wayland: Remove dead assignment
authorEdward Hervey <edward@collabora.com>
Mon, 14 Apr 2014 05:56:16 +0000 (07:56 +0200)
committerEdward Hervey <edward@collabora.com>
Mon, 14 Apr 2014 05:56:16 +0000 (07:56 +0200)
We set it just after variable declaration

CID #1197709

ext/wayland/gstwaylandsink.c

index cabf310..e286f32 100644 (file)
@@ -387,7 +387,7 @@ gst_wayland_sink_format_from_caps (uint32_t * wl_format, GstCaps * caps)
 static gboolean
 gst_wayland_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
 {
-  GstWaylandSink *sink = GST_WAYLAND_SINK (bsink);
+  GstWaylandSink *sink;
   GstBufferPool *newpool, *oldpool;
   GstVideoInfo info;
   GstStructure *structure;