summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2021-06-22 12:20:05 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2023-05-12 14:37:06 +0200
commit9dd6b08fcc1af9401d6eda687af747550221ebac (patch)
treee17496ae19970551572cf94376b25930fea21711
parent681f042f271a89c7a8961750c4cd6ece70b45d23 (diff)
downloadgstreamer-9dd6b08fcc1af9401d6eda687af747550221ebac.tar.gz
theoradec: remove unused codec state variable
The last user of this state was removed in 9a541157cf1c "theoradec: Fix decoding in the presence of GstVideoCropMeta". Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4600>
-rw-r--r--subprojects/gst-plugins-base/ext/theora/gsttheoradec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/subprojects/gst-plugins-base/ext/theora/gsttheoradec.c b/subprojects/gst-plugins-base/ext/theora/gsttheoradec.c
index 33a28d7608..fa08804ae9 100644
--- a/subprojects/gst-plugins-base/ext/theora/gsttheoradec.c
+++ b/subprojects/gst-plugins-base/ext/theora/gsttheoradec.c
@@ -920,7 +920,6 @@ static gboolean
theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
{
GstTheoraDec *dec = GST_THEORA_DEC (decoder);
- GstVideoCodecState *state;
GstBufferPool *pool;
guint size, min, max;
GstStructure *config;
@@ -929,8 +928,6 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
query))
return FALSE;
- state = gst_video_decoder_get_output_state (decoder);
-
gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max);
dec->can_crop = FALSE;
@@ -965,7 +962,6 @@ theora_dec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
gst_query_set_nth_allocation_pool (query, 0, pool, size, min, max);
gst_object_unref (pool);
- gst_video_codec_state_unref (state);
return TRUE;
}