• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
3  * Copyright (C) 2005-2009 Tim-Philipp Müller <tim centricular net>
4  * Copyright (C) 2009 Sebastian Dröge <sebastian.droege@collabora.co.uk>
5  * Copyright (C) 2020 Huawei Technologies Co., Ltd.
6  *   @Author: Stéphane Cerveau <scerveau@collabora.com>
7  *
8  * gsttypefindfunctionsdata.c: helper method for typefind functions
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the
22  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23  * Boston, MA 02110-1301, USA.
24  */
25 
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29 
30 #include <gst/gst.h>
31 #include "gsttypefindfunctionsdata.h"
32 
33 void
sw_data_destroy(GstTypeFindData * sw_data)34 sw_data_destroy (GstTypeFindData * sw_data)
35 {
36   if (G_LIKELY (sw_data->caps != NULL))
37     gst_caps_unref (sw_data->caps);
38   g_slice_free (GstTypeFindData, sw_data);
39 }
40