mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
nvenc: Remove unused code path
refilling queue would not happen
This commit is contained in:
parent
706ec236ac
commit
aef414375a
1 changed files with 2 additions and 11 deletions
|
@ -1243,10 +1243,9 @@ gst_nv_base_enc_stop_bitstream_thread (GstNvBaseEnc * nvenc, gboolean force)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_nv_base_enc_reset_queues (GstNvBaseEnc * nvenc, gboolean refill)
|
gst_nv_base_enc_reset_queues (GstNvBaseEnc * nvenc)
|
||||||
{
|
{
|
||||||
gpointer ptr;
|
gpointer ptr;
|
||||||
gint i;
|
|
||||||
|
|
||||||
GST_INFO_OBJECT (nvenc, "clearing queues");
|
GST_INFO_OBJECT (nvenc, "clearing queues");
|
||||||
|
|
||||||
|
@ -1259,14 +1258,6 @@ gst_nv_base_enc_reset_queues (GstNvBaseEnc * nvenc, gboolean refill)
|
||||||
while ((ptr = g_async_queue_try_pop (nvenc->bitstream_queue))) {
|
while ((ptr = g_async_queue_try_pop (nvenc->bitstream_queue))) {
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (refill) {
|
|
||||||
GST_INFO_OBJECT (nvenc, "refilling buffer pools");
|
|
||||||
for (i = 0; i < nvenc->n_bufs; ++i) {
|
|
||||||
g_async_queue_push (nvenc->available_queue,
|
|
||||||
&g_array_index (nvenc->items, GstNvEncFrameState, i));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -1279,7 +1270,7 @@ gst_nv_base_enc_free_buffers (GstNvBaseEnc * nvenc)
|
||||||
if (nvenc->encoder == NULL)
|
if (nvenc->encoder == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
gst_nv_base_enc_reset_queues (nvenc, FALSE);
|
gst_nv_base_enc_reset_queues (nvenc);
|
||||||
|
|
||||||
gst_cuda_context_push (nvenc->cuda_ctx);
|
gst_cuda_context_push (nvenc->cuda_ctx);
|
||||||
for (i = 0; i < nvenc->n_bufs; ++i) {
|
for (i = 0; i < nvenc->n_bufs; ++i) {
|
||||||
|
|
Loading…
Reference in a new issue