Skip to content
This repository
Browse code

Using new GStreamer api for window handle

  • Loading branch information...
commit cdedab0b1589ed80ef36622f82258e2aee81546a 1 parent ab5c0ab
Xabier Rodríguez authored April 27, 2012

Showing 1 changed file with 6 additions and 3 deletions. Show diff stats Hide diff stats

  1. 9  src/pipeline.cpp
9  src/pipeline.cpp
@@ -352,9 +352,12 @@ void Pipeline::handleBusMessage(GstMessage *message)
352 352
     switch (GST_MESSAGE_TYPE(message)) {
353 353
     case GST_MESSAGE_ELEMENT:
354 354
         {
355  
-            // The only message we are handling here is the prepare-xwindow-id one
356  
-            if (gst_structure_has_name (message->structure, "prepare-xwindow-id")) {
357  
-                gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(viewfinder), windowId);
  355
+            // The only message we are handling here is the
  356
+            // prepare-xwindow-id one
  357
+            if (gst_structure_has_name (message->structure,
  358
+                                        "prepare-xwindow-id")) {
  359
+                gst_x_overlay_set_window_handle(GST_X_OVERLAY(viewfinder),
  360
+                                                windowId);
358 361
             }
359 362
             break;
360 363
         }

0 notes on commit cdedab0

Please sign in to comment.
Something went wrong with that request. Please try again.