From: Hyunil Date: Wed, 9 May 2018 04:52:17 +0000 (+0900) Subject: tizenwlsink: Remove unreachable code X-Git-Tag: accepted/tizen/unified/20180510.070759^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F178255%2F1;p=platform%2Fupstream%2Fgst-plugins-tizen.git tizenwlsink: Remove unreachable code Change-Id: I7fcd4ce04a346fc31bdbfd1e1cbc078aa40ea5af Signed-off-by: Hyunil --- diff --git a/tizenwlsink/src/gsttizenwlsink.c b/tizenwlsink/src/gsttizenwlsink.c index 465e734..2502fb9 100644 --- a/tizenwlsink/src/gsttizenwlsink.c +++ b/tizenwlsink/src/gsttizenwlsink.c @@ -2353,31 +2353,6 @@ gst_tizen_wl_sink_show_frame (GstVideoSink * vsink, GstBuffer * buffer) goto done; -no_window_size: - { - GST_ELEMENT_ERROR (sink, RESOURCE, WRITE, - ("Window has no size set"), - ("Make sure you set the size after calling set_window_handle")); - ret = GST_FLOW_ERROR; - goto done; - } -no_buffer: - { - GST_WARNING_OBJECT (sink, "could not create buffer"); - goto done; - } -no_wl_buffer: - { - GST_ERROR_OBJECT (sink, "could not create wl_buffer out of wl_shm memory"); - ret = GST_FLOW_ERROR; - goto done; - } -activate_failed: - { - GST_ERROR_OBJECT (sink, "failed to activate bufferpool."); - ret = GST_FLOW_ERROR; - goto done; - } #endif done: {