mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
vpxdec: Use threads on multi-core systems
This is a redo of commit b848c1b6ff
. The
code was lost when the elements where ported to use a baseclass.
https://bugzilla.gnome.org/show_bug.cgi?id=764169
This commit is contained in:
parent
d738fa0787
commit
284d723a9a
1 changed files with 5 additions and 1 deletions
|
@ -577,7 +577,11 @@ gst_vpx_dec_open_codec (GstVPXDec * dec, GstVideoCodecFrame * frame)
|
|||
|
||||
cfg.w = stream_info.w;
|
||||
cfg.h = stream_info.h;
|
||||
cfg.threads = dec->threads;
|
||||
|
||||
if (dec->threads > 0)
|
||||
cfg.threads = dec->threads;
|
||||
else
|
||||
cfg.threads = g_get_num_processors ();
|
||||
|
||||
caps = vpx_codec_get_caps (vpxclass->codec_algo);
|
||||
|
||||
|
|
Loading…
Reference in a new issue