@@ -368,10 +368,14 @@ static VADisplay resolve_va_display_from_gst_display(GstObject *gst_display_obj)
368368 return get_va ? get_va ((gpointer)gst_display_obj) : nullptr ;
369369}
370370#else
371- static VADisplay resolve_va_display_from_gst_display (GstObject *) { return nullptr ; }
371+ static VADisplay resolve_va_display_from_gst_display (GstObject *) {
372+ return nullptr ;
373+ }
372374#endif
373375#else
374- static VADisplay resolve_va_display_from_gst_display (GstObject *) { return nullptr ; }
376+ static VADisplay resolve_va_display_from_gst_display (GstObject *) {
377+ return nullptr ;
378+ }
375379#endif
376380
377381// Grab VADisplay from GstContext (handles both pointer and object cases)
@@ -453,7 +457,9 @@ static bool buffer_has_va(GstBuffer *buf) {
453457// Minimal fallback: resolve VASurfaceID from GstVA at runtime (no unstable headers)
454458#ifdef ENABLE_VAAPI
455459#ifdef _WIN32
456- static VASurfaceID get_surface_from_buffer (GstBuffer *) { return VA_INVALID_SURFACE; }
460+ static VASurfaceID get_surface_from_buffer (GstBuffer *) {
461+ return VA_INVALID_SURFACE;
462+ }
457463#else
458464static VASurfaceID get_surface_from_buffer (GstBuffer *buf) {
459465 if (!buf)
@@ -499,7 +505,9 @@ static VASurfaceID get_surface_from_buffer(GstBuffer *buf) {
499505}
500506#endif
501507#else
502- static VASurfaceID get_surface_from_buffer (GstBuffer *) { return VA_INVALID_SURFACE; }
508+ static VASurfaceID get_surface_from_buffer (GstBuffer *) {
509+ return VA_INVALID_SURFACE;
510+ }
503511#endif
504512
505513static GstFlowReturn gst_gva_watermark_impl_transform_ip (GstBaseTransform *trans, GstBuffer *buf) {
@@ -539,9 +547,9 @@ static GstFlowReturn gst_gva_watermark_impl_transform_ip(GstBaseTransform *trans
539547 return GST_FLOW_OK;
540548 }
541549
542- // VA/GPU render path only when VAAPI enabled
550+ // VA/GPU render path only when VAAPI enabled
543551#if defined(ENABLE_VAAPI) && !defined(_MSC_VER)
544- if (use_gpu_path) {
552+ if (use_gpu_path) {
545553 GST_TRACE_OBJECT (gvawatermark, " Using VA/GPU render path" );
546554
547555 VASurfaceID sid = VA_INVALID_SURFACE;
@@ -587,7 +595,7 @@ static GstFlowReturn gst_gva_watermark_impl_transform_ip(GstBaseTransform *trans
587595 cv::va_intel::convertToVASurface (gvawatermark->va_dpy , u, sid, cv::Size (width, height));
588596 }
589597 }
590- }
598+ }
591599#endif // ENABLE_VAAPI
592600
593601 if (!use_gpu_path) {
0 commit comments