Browse files

Using new GStreamer api for window handle

  • Loading branch information...
1 parent ab5c0ab commit cdedab0b1589ed80ef36622f82258e2aee81546a @calvaris calvaris committed Apr 27, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/pipeline.cpp
View
9 src/pipeline.cpp
@@ -352,9 +352,12 @@ void Pipeline::handleBusMessage(GstMessage *message)
switch (GST_MESSAGE_TYPE(message)) {
case GST_MESSAGE_ELEMENT:
{
- // The only message we are handling here is the prepare-xwindow-id one
- if (gst_structure_has_name (message->structure, "prepare-xwindow-id")) {
- gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(viewfinder), windowId);
+ // The only message we are handling here is the
+ // prepare-xwindow-id one
+ if (gst_structure_has_name (message->structure,
+ "prepare-xwindow-id")) {
+ gst_x_overlay_set_window_handle(GST_X_OVERLAY(viewfinder),
+ windowId);
}
break;
}

0 comments on commit cdedab0

Please sign in to comment.