blob: 7f365fff51d4413037de47ba6791b36248bceaa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
/*
* Copyright (C) 2013 Intel Corporation.
*
* Authors: Krzesimir Nowak <krnowak@openismus.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include "gupnp-dlna-gst-legacy-utils.h"
#include "gupnp-dlna-gst-information.h"
/**
* gupnp_dlna_gst_utils_information_from_discoverer_info:
* @info: A #GstDiscovererInfo object.
*
* This utility function creates a #GUPnPDLNAInformation from
* #GstDiscovererInfo. Its purpose is mainly to pass its result to
* gupnp_dlna_profile_guesser_guess_profile_from_info() to avoid
* rediscovering of a URI. Created #GUPnPDLNAInformation takes a
* reference on @info.
*
* Returns: (transfer full): A #GUPnPDLNAInformation. Unref it when
* done with it.
*/
GUPnPDLNAInformation *
gupnp_dlna_gst_utils_information_from_discoverer_info (GstDiscovererInfo *info)
{
g_return_val_if_fail (GST_IS_DISCOVERER_INFO (info), NULL);
return GUPNP_DLNA_INFORMATION
(gupnp_dlna_gst_information_new_from_discoverer_info
(gst_discoverer_info_get_uri (info),
info));
}
|