Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Using new GStreamer api for window handle

  • Loading branch information...
commit cdedab0b1589ed80ef36622f82258e2aee81546a 1 parent ab5c0ab
@calvaris calvaris authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.