mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
vaapiconvert: use gst_vaapi_display_lookup_downstream() helper to get a VA display.
This commit is contained in:
parent
00bb1ca6b4
commit
dcf44d0809
1 changed files with 4 additions and 7 deletions
|
@ -30,6 +30,8 @@
|
|||
#include <gst/gst.h>
|
||||
#include <gst/video/video.h>
|
||||
#include <gst/vaapi/gstvaapivideosink.h>
|
||||
#include <gst/vaapi/gstvaapivideobuffer.h>
|
||||
#include <gst/vaapi/gstvaapiutils_gst.h>
|
||||
#include "gstvaapiconvert.h"
|
||||
|
||||
#define GST_PLUGIN_NAME "vaapiconvert"
|
||||
|
@ -299,15 +301,10 @@ static gboolean
|
|||
gst_vaapiconvert_start(GstBaseTransform *trans)
|
||||
{
|
||||
GstVaapiConvert * const convert = GST_VAAPICONVERT(trans);
|
||||
GstVaapiVideoSink *sink;
|
||||
GstVaapiDisplay *display;
|
||||
|
||||
/* Look for a downstream vaapisink */
|
||||
sink = gst_vaapi_video_sink_lookup(GST_ELEMENT(trans));
|
||||
if (!sink)
|
||||
return FALSE;
|
||||
|
||||
display = gst_vaapi_video_sink_get_display(sink);
|
||||
/* Look for a downstream display */
|
||||
display = gst_vaapi_display_lookup_downstream(GST_ELEMENT(trans));
|
||||
if (!display)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue