Revert "msdkdec: make sure to use video memory on Linux"
Commit a1584b6 caused big performance drop if the downstream element is not a msdk element because it is very slow to read data from video memory directly. This reverts commit a1584b6f99caaf61812ac6a9654ec0e6da8240da.
This commit is contained in:
parent
ce3b035a53
commit
bdf9a76226
@ -681,6 +681,10 @@ gst_msdkdec_start (GstVideoDecoder * decoder)
|
|||||||
{
|
{
|
||||||
GstMsdkDec *thiz = GST_MSDKDEC (decoder);
|
GstMsdkDec *thiz = GST_MSDKDEC (decoder);
|
||||||
|
|
||||||
|
if (gst_msdk_context_prepare (GST_ELEMENT_CAST (thiz), &thiz->context)) {
|
||||||
|
GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour",
|
||||||
|
thiz->context);
|
||||||
|
|
||||||
/* TODO: Currently d3d allocator is not implemented.
|
/* TODO: Currently d3d allocator is not implemented.
|
||||||
* So decoder uses system memory by default on Windows.
|
* So decoder uses system memory by default on Windows.
|
||||||
*/
|
*/
|
||||||
@ -690,10 +694,6 @@ gst_msdkdec_start (GstVideoDecoder * decoder)
|
|||||||
thiz->use_video_memory = FALSE;
|
thiz->use_video_memory = FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (gst_msdk_context_prepare (GST_ELEMENT_CAST (thiz), &thiz->context)) {
|
|
||||||
GST_INFO_OBJECT (thiz, "Found context %" GST_PTR_FORMAT " from neighbour",
|
|
||||||
thiz->context);
|
|
||||||
|
|
||||||
if (gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
|
if (gst_msdk_context_get_job_type (thiz->context) & GST_MSDK_JOB_DECODER) {
|
||||||
GstMsdkContext *parent_context, *msdk_context;
|
GstMsdkContext *parent_context, *msdk_context;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user