From cb5c0e47c8e4eca800d0e8e020ed3d81f37518e0 Mon Sep 17 00:00:00 2001 From: Yinhang Liu Date: Tue, 18 Apr 2023 17:08:54 +0800 Subject: [PATCH] msdk: Remove unreachable statement The execution cannot reach the statement: "gst_caps_unref(dma_caps);", so remove it. Part-of: --- subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c index 2a96326077..5d9988aa51 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c +++ b/subprojects/gst-plugins-bad/sys/msdk/gstmsdkcaps.c @@ -1728,8 +1728,6 @@ failed: gst_caps_unref (in_caps); if (out_caps) gst_caps_unref (out_caps); - if (dma_caps) - gst_caps_unref (dma_caps); return FALSE; }