mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
Fix integration within the playbin2 pipeline.
This commit is contained in:
parent
159f42ca7f
commit
2d90a2dd3a
3 changed files with 10 additions and 20 deletions
5
NEWS
5
NEWS
|
@ -1,6 +1,9 @@
|
||||||
gst-vaapi NEWS -- summary of changes. 2010-05-05
|
gst-vaapi NEWS -- summary of changes. 2010-05-DD
|
||||||
Copyright (C) 2010 Splitted-Desktop Systems
|
Copyright (C) 2010 Splitted-Desktop Systems
|
||||||
|
|
||||||
|
Version 0.2.1 - DD.May.2010
|
||||||
|
* Fix integration within the playbin2 pipeline
|
||||||
|
|
||||||
Version 0.2.0 - 05.May.2010
|
Version 0.2.0 - 05.May.2010
|
||||||
* Relicense gst-libs/ code to LGPL v2.1+
|
* Relicense gst-libs/ code to LGPL v2.1+
|
||||||
* Add FFmpeg/VAAPI decoder for the new `vaapidecode' element
|
* Add FFmpeg/VAAPI decoder for the new `vaapidecode' element
|
||||||
|
|
1
README
1
README
|
@ -74,6 +74,5 @@ elements automatically.
|
||||||
Caveats
|
Caveats
|
||||||
-------
|
-------
|
||||||
|
|
||||||
* No automatic integration within the default playbin2 pipeline
|
|
||||||
* No ad-hoc parser, vaapidecoder currently relies on FFmpeg
|
* No ad-hoc parser, vaapidecoder currently relies on FFmpeg
|
||||||
* MPEG-4 Part-2 (DivX) has decoding bugs
|
* MPEG-4 Part-2 (DivX) has decoding bugs
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include <gst/vaapi/gstvaapivideosink.h>
|
#include <gst/vaapi/gstvaapivideosink.h>
|
||||||
#include <gst/vaapi/gstvaapivideobuffer.h>
|
#include <gst/vaapi/gstvaapivideobuffer.h>
|
||||||
#include <gst/vaapi/gstvaapidecoder_ffmpeg.h>
|
#include <gst/vaapi/gstvaapidecoder_ffmpeg.h>
|
||||||
|
#include <gst/vaapi/gstvaapiutils_gst.h>
|
||||||
|
|
||||||
#define GST_PLUGIN_NAME "vaapidecode"
|
#define GST_PLUGIN_NAME "vaapidecode"
|
||||||
#define GST_PLUGIN_DESC "A VA-API based video decoder"
|
#define GST_PLUGIN_DESC "A VA-API based video decoder"
|
||||||
|
@ -157,26 +158,13 @@ error_commit_buffer:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static inline gboolean
|
||||||
gst_vaapidecode_ensure_display(GstVaapiDecode *decode)
|
gst_vaapidecode_ensure_display(GstVaapiDecode *decode)
|
||||||
{
|
{
|
||||||
GstVaapiVideoSink *sink;
|
if (!decode->display)
|
||||||
GstVaapiDisplay *display;
|
decode->display =
|
||||||
|
gst_vaapi_display_lookup_downstream(GST_ELEMENT(decode));
|
||||||
if (decode->display)
|
return decode->display != NULL;
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
/* Look for a downstream vaapisink */
|
|
||||||
sink = gst_vaapi_video_sink_lookup(GST_ELEMENT(decode));
|
|
||||||
if (!sink)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
display = gst_vaapi_video_sink_get_display(sink);
|
|
||||||
if (!display)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
decode->display = g_object_ref(display);
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue