summaryrefslogtreecommitdiff
path: root/gtk2_ardour/video_image_frame.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-04-16 23:28:53 +0200
committerRobin Gareus <robin@gareus.org>2013-04-16 23:28:53 +0200
commit3d169d00bb27a0724239c4c530198a6b2d431911 (patch)
treeaf24d869f714633fea39ef8c9cdc569cc50643a9 /gtk2_ardour/video_image_frame.cc
parentb713af2083c9da1ab6f82b47abae1da94bc96654 (diff)
vtl: remove superfluous group
Diffstat (limited to 'gtk2_ardour/video_image_frame.cc')
-rw-r--r--gtk2_ardour/video_image_frame.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/video_image_frame.cc b/gtk2_ardour/video_image_frame.cc
index c1697722c6..9235e0d13b 100644
--- a/gtk2_ardour/video_image_frame.cc
+++ b/gtk2_ardour/video_image_frame.cc
@@ -52,8 +52,7 @@ VideoImageFrame::VideoImageFrame (PublicEditor& ed, ArdourCanvas::Group& parent,
thread_active=false;
unit_position = editor.sample_to_pixel (frame_position);
- group = new ArdourCanvas::Group (_parent, ArdourCanvas::Duple(unit_position, 1.0));
- image = new ArdourCanvas::Image (group, Cairo::FORMAT_ARGB32, clip_width, clip_height);
+ image = new ArdourCanvas::Image (_parent, Cairo::FORMAT_ARGB32, clip_width, clip_height);
img = image->get_image();
fill_frame(0, 0, 0);
@@ -61,14 +60,13 @@ VideoImageFrame::VideoImageFrame (PublicEditor& ed, ArdourCanvas::Group& parent,
draw_x();
image->put_image(img);
- group->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_videotl_bar_event), _parent));
+ image->Event.connect (sigc::bind (sigc::mem_fun (editor, &PublicEditor::canvas_videotl_bar_event), _parent));
}
VideoImageFrame::~VideoImageFrame ()
{
if (thread_active) pthread_join(thread_id_tt, NULL);
delete image;
- delete group;
pthread_mutex_destroy(&request_lock);
pthread_mutex_destroy(&queue_lock);
}
@@ -77,7 +75,7 @@ void
VideoImageFrame::set_position (framepos_t frame)
{
double new_unit_position = editor.sample_to_pixel (frame);
- group->move (ArdourCanvas::Duple (new_unit_position - unit_position, 0.0));
+ image->move (ArdourCanvas::Duple (new_unit_position - unit_position, 0.0));
frame_position = frame;
unit_position = new_unit_position;
}