summaryrefslogtreecommitdiff
path: root/gr-video-sdl/lib/sink_s_impl.cc
diff options
context:
space:
mode:
authorSolomon Tan <solomonbstoner@yahoo.com.au>2021-08-24 21:11:25 +0800
committermormj <34754695+mormj@users.noreply.github.com>2021-09-02 09:24:22 -0400
commit5ff50fe1f7c46abab8e5dc26039419dc0cf5f526 (patch)
tree167f6a3e230be43c8da87e65e734fae78a92c33b /gr-video-sdl/lib/sink_s_impl.cc
parented4cc57c043741d43dfa071770bdf3b78821ba54 (diff)
gr-video-sdl: Remove d_format
Remove d_format because the yaml sets it to 0, and is not checked at all after initialization. Signed-off-by: Solomon Tan <solomonbstoner@yahoo.com.au>
Diffstat (limited to 'gr-video-sdl/lib/sink_s_impl.cc')
-rw-r--r--gr-video-sdl/lib/sink_s_impl.cc21
1 files changed, 5 insertions, 16 deletions
diff --git a/gr-video-sdl/lib/sink_s_impl.cc b/gr-video-sdl/lib/sink_s_impl.cc
index 56d51ffbca..df8d9a8c0f 100644
--- a/gr-video-sdl/lib/sink_s_impl.cc
+++ b/gr-video-sdl/lib/sink_s_impl.cc
@@ -27,23 +27,15 @@ namespace gr {
namespace video_sdl {
-sink_s::sptr sink_s::make(double framerate,
- int width,
- int height,
- unsigned int format,
- int dst_width,
- int dst_height)
+sink_s::sptr
+sink_s::make(double framerate, int width, int height, int dst_width, int dst_height)
{
return gnuradio::make_block_sptr<sink_s_impl>(
- framerate, width, height, format, dst_width, dst_height);
+ framerate, width, height, dst_width, dst_height);
}
-sink_s_impl::sink_s_impl(double framerate,
- int width,
- int height,
- unsigned int format,
- int dst_width,
- int dst_height)
+sink_s_impl::sink_s_impl(
+ double framerate, int width, int height, int dst_width, int dst_height)
: sync_block("video_sdl_sink_s",
io_signature::make(1, 3, sizeof(short)),
io_signature::make(0, 0, 0)),
@@ -54,7 +46,6 @@ sink_s_impl::sink_s_impl(double framerate,
d_height(height),
d_dst_width(dst_width),
d_dst_height(dst_height),
- d_format(format),
d_current_line(0),
d_screen(NULL),
d_image(NULL),
@@ -70,8 +61,6 @@ sink_s_impl::sink_s_impl(double framerate,
d_dst_width = d_width;
if (dst_height < 0)
d_dst_height = d_height;
- if (0 == format)
- d_format = IMGFMT_YV12;
atexit(SDL_Quit); // check if this is the way to do this
if (SDL_Init(SDL_INIT_VIDEO) < 0) {