Skip to content

Commit

Permalink
Using new GStreamer api for window handle
Browse files Browse the repository at this point in the history
  • Loading branch information
calvaris committed Apr 27, 2012
1 parent ab5c0ab commit cdedab0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/pipeline.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit cdedab0

Please sign in to comment.