libs: encoder: not call ensure_num_slices inside g_assert
authorHe Junyan <junyan.he@hotmail.com>
Fri, 10 May 2019 10:29:10 +0000 (18:29 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Fri, 10 May 2019 10:29:13 +0000 (18:29 +0800)
commit0af3e36068a93a68ec6c3c039f28c441bf0af26a
tree4a74c2604ead0bf1f7e52a5407735d5db9f35719
parent47d256b24c47de49cfb8051c9b93e3aeec6ee2fd
libs: encoder: not call ensure_num_slices inside g_assert

g_assert will take no effect when glib's G_DISABLE_ASSERT macro is
defined. The function inside the g_assert will take no effect and
we will fail to set the correct slice number.
gst-libs/gst/vaapi/gstvaapiencoder_h264.c
gst-libs/gst/vaapi/gstvaapiencoder_h265.c