sys/directdraw/gstdirectdrawsink.c: Make sure we create our internal window only...
authorJulien Moutte <julien@moutte.net>
Sat, 5 Jan 2008 21:20:08 +0000 (21:20 +0000)
committerJulien Moutte <julien@moutte.net>
Sat, 5 Jan 2008 21:20:08 +0000 (21:20 +0000)
commit7e0714b51144e97132d4ccf91b46de1d86085f8a
tree03b2c730c81bccf92ba2c3368cd26e28b8ef9efb
parent9d06bf944169af1a04668422e5387421a77bc3b8
sys/directdraw/gstdirectdrawsink.c: Make sure we create our internal window only when we need it. That will give a ch...

Original commit message from CVS:
2008-01-05  Julien Moutte  <julien@fluendo.com>

* sys/directdraw/gstdirectdrawsink.c:
(gst_directdraw_sink_set_window_id),
(gst_directdraw_sink_set_caps),
(gst_directdraw_sink_change_state),
(gst_directdraw_sink_buffer_alloc),
(gst_directdraw_sink_draw_borders),
(gst_directdraw_sink_show_frame),
(gst_directdraw_sink_setup_ddraw),
(gst_directdraw_sink_window_thread),
(gst_directdraw_sink_get_ddrawcaps),
(gst_directdraw_sink_surface_create): Make sure we create our
internal window only when we need it. That will give a chance to
the application to get the prepare-xwindow-id bus message. Draw
black borders when keeping aspect ratio. Handle the case where
our
rendering window disappears (closed or errors) like other sinks
do. Various 80 columns fixes, improve state change order. That
element could need some more love.
ChangeLog
sys/directdraw/gstdirectdrawsink.c