plus, rearrange some included header files.
[Version] 0.3.151
[Issue Type] Bug fix
Change-Id: I4a23a38a1b203f05cd9abfe5dfa299c830ed931a
#define GST_USE_UNSTABLE_API
#include <gst/webrtc/webrtc.h>
#endif
-#include <gst/video/videooverlay.h>
#include <iniparser.h>
#include <mm_display_interface.h>
#ifndef TIZEN_TV
#include <mm_resource_manager.h>
#endif
-#include <sound_manager_internal.h>
#include <tbm_bufmgr.h>
#include <libwebsockets.h>
#include <libsoup/soup.h>
+#include "webrtc.h"
+
#ifdef __cplusplus
extern "C" {
#endif
Name: capi-media-webrtc
Summary: A WebRTC library in Tizen Native API
-Version: 0.3.150
+Version: 0.3.151
Release: 0
Group: Multimedia/API
License: Apache-2.0
#include "webrtc_private.h"
#include <json-glib/json-glib.h>
#include <pulse/proplist.h>
+#include <sound_manager_internal.h>
#define DEFAULT_DOT_FILE_NAME_PREFIX "webrtc"
#include "webrtc.h"
#include "webrtc_private.h"
#include <media_packet_internal.h>
+#include <sound_manager_internal.h>
+#include <gst/video/videooverlay.h>
//LCOV_EXCL_START
bool _is_owner_of_track_build_context(webrtc_s *webrtc, unsigned int track_id)
#include "webrtc_source_mediapacket.h"
#include <tbm_surface_internal.h>
-#include <media_packet_internal.h>
#include <Elementary.h>
+#include <sound_manager_internal.h>
#define MIN_DYNAMIC_PAYLOAD_TYPE 96
#define MAX_DYNAMIC_PAYLOAD_TYPE 127
{
GstElement *capsfilter = NULL;
GstCaps *sink_caps = NULL;
- unsigned int payload_type = 0;
RET_VAL_IF(source == NULL, NULL, "source is NULL");
return NULL;
}
- if ((sink_caps = _make_rtp_caps(GET_MEDIA_TYPE_NAME(is_audio), payload_type, source))) {
+ if ((sink_caps = _make_rtp_caps(GET_MEDIA_TYPE_NAME(is_audio), source->av[GET_AV_IDX(is_audio)].pt, source))) {
g_object_set(G_OBJECT(capsfilter), "caps", sink_caps, NULL);
gst_caps_unref(sink_caps);
}
goto exit;
SAFE_G_LIST_FREE(element_list);
- return ret;
+
+ return WEBRTC_ERROR_NONE;
exit:
SAFE_G_LIST_FREE_FULL(element_list, gst_object_unref);
LOG_INFO("webrtc[%p] source_id[%u] format[%p]", webrtc, source_id, format);
- return ret;
+ return WEBRTC_ERROR_NONE;
error:
media_format_unref(format);
* limitations under the License.
*/
-#include "webrtc_internal.h"
#include "webrtc_private.h"
#include "webrtc_source_common.h"
* limitations under the License.
*/
-#include "webrtc_internal.h"
#include "webrtc_private.h"
#include "webrtc_source_common.h"
#include <gst/audio/audio.h>
if ((ret = _set_ghost_pad_target(*src_pad, capsfilter, true)) != WEBRTC_ERROR_NONE)
goto error;
- return ret;
+ return WEBRTC_ERROR_NONE;
error:
_remove_elements_from_bin(source->bin, element_list);
goto exit;
SAFE_G_LIST_FREE(element_list);
- return ret;
+
+ return WEBRTC_ERROR_NONE;
exit:
SAFE_G_LIST_FREE_FULL(element_list, gst_object_unref);
* limitations under the License.
*/
-#include "webrtc_internal.h"
#include "webrtc_private.h"
#include "webrtc_source_common.h"