/**
* @brief Unprepares Media Streamer pipeline and unlink nodes
- * which user did't link before.
+ * which user didn't link before.
*
* @since_tizen 3.0
*/
int __ms_element_pull_packet(GstElement *sink_element, media_packet_h *packet);
/**
- * @brief Prepare demuxer elemetn for playing.
+ * @brief Prepare demuxer element for playing.
*
* @since_tizen 3.0
*/
Name: capi-media-streamer
Summary: A Media Streamer API
-Version: 0.1.31
+Version: 0.1.32
Release: 0
Group: Multimedia/API
License: Apache-2.0
ms_retvm_if(ms_streamer == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "streamer is NULL");
ms_retvm_if(ms_streamer->state < MEDIA_STREAMER_STATE_PLAYING || ms_streamer->state > MEDIA_STREAMER_STATE_PAUSED, MEDIA_STREAMER_ERROR_INVALID_STATE, "The media streamer state is not in the appropriate state");
- /* Notify: the seeking must be reseted while streamer got ASYNC_DONE message */
+ /* Notify: the seeking must be reset while streamer got ASYNC_DONE message */
ms_retvm_if(ms_streamer->is_seeking, MEDIA_STREAMER_ERROR_INVALID_STATE, "Media streamer is seeking");
g_mutex_lock(&ms_streamer->mutex_lock);
if (!auto_plug) {
plugin_name = __ms_ini_get_string("node type 1:adaptive", DEFAULT_ADAPTIVE_SOURCE);
- ms_retvm_if(plugin_name == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error empty plugin name for adaprive source");
+ ms_retvm_if(plugin_name == NULL, MEDIA_STREAMER_ERROR_INVALID_PARAMETER, "Error empty plugin name for adaptive source");
ms_info("Creating [%s] element", plugin_name);
plugin_elem = gst_element_factory_make(plugin_name, NULL);
g_free(plugin_name);
enc_caps = plug_info->src_caps;
if (!enc_caps) {
enc_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
- ms_debug("No Video encoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
+ ms_debug("No Video encoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
}
/* Creating Scaler, Converter */
dec_caps = plug_info->sink_caps;
if (!dec_caps) {
dec_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
- ms_debug("No Video decoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
+ ms_debug("No Video decoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_VIDEO_FORMAT);
}
/* Creating Video Decoder */
enc_caps = plug_info->src_caps;
if (!enc_caps) {
enc_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
- ms_debug("No Audio encoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
+ ms_debug("No Audio encoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
}
/* Creating Converter, Resampler, Filter */
dec_caps = plug_info->sink_caps;
if (!dec_caps) {
dec_caps = gst_caps_from_string(MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
- ms_debug("No Audio decoding format is set! Deafault will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
+ ms_debug("No Audio decoding format is set! Default will be: [%s]", MEDIA_STREAMER_DEFAULT_AUDIO_FORMAT);
}
/* Creating Audio Decoder */
char *file_path = NULL;
const char *extension = NULL;
- /* Close connetion if handle is NULL */
+ /* Close connection if handle is NULL */
ms_retm_if(hserver == NULL, "server is NULL");
ms_retm_if(msg == NULL || msg->method == NULL || msg->request_headers == NULL, "msg is NULL");
ms_retm_if(path == NULL, "path is NULL");
mime_type_get_mime_type(extension, &mime_type);
- ms_info("Recieved URI %s", path + 1);
+ ms_info("Received URI %s", path + 1);
ms_info("mime-type: %s", mime_type);
if (MEDIA_STREAMER_ERROR_NONE !=
}
}
- /* Skip checking for privilige permission in case of other types of Nodes */
+ /* Skip checking for privilege permission in case of other types of Nodes */
if (privilege == NULL)
return ret;
found_node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table, GST_ELEMENT_NAME(src_element));
if (!found_node) {
- /* If we fail to found corresonding node inside streamer
- then apprently this element doesn't require resources. */
- ms_debug("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(src_element));
+ /* If we fail to find corresponding node inside streamer
+ then apparently this element doesn't require resources. */
+ ms_debug("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(src_element));
g_value_set_boolean(ret, TRUE);
return TRUE;
}
goto _DONE;
}
- /* Get parent_id which is unique in a entire systemw. */
tz_resource = tizen_surface_get_tizen_resource(tz_surface, surface);
if (!tz_resource) {
- LOGE("failed to get tizen resurce");
+ LOGE("failed to get tizen resource");
ret = MEDIA_STREAMER_ERROR_INVALID_OPERATION;
goto _DONE;
}
/**
* @brief Set display for video sink.
*
- * @sinse_tizen 3.0
+ * @since_tizen 3.0
*/
int __ms_node_set_display(media_streamer_node_s *ms_node, const char *param_value)
{
node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
GST_ELEMENT_NAME(element));
if (!node) {
- /* If we fail to found corresonding node inside streamer
- then apprently this element doesn't require resources */
- ms_info("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+ /* If we fail to find corresponding node inside streamer
+ then apparently this element doesn't require resources */
+ ms_info("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
g_value_set_boolean(ret, TRUE);
g_object_unref(element);
return TRUE;
node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
GST_ELEMENT_NAME(element));
if (!node) {
- /* If we fail to found corresonding node inside streamer
- then apprently this element doesn't require resources. */
- ms_debug("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+ /* If we fail to find corresponding node inside streamer
+ then apparently this element doesn't require resources. */
+ ms_debug("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
g_value_set_boolean(ret, TRUE);
g_object_unref(element);
return TRUE;
node = (media_streamer_node_s *) g_hash_table_lookup(ms_streamer->nodes_table,
GST_ELEMENT_NAME(element));
if (!node) {
- /* If we fail to found corresonding node inside streamer
- then apprently this element doesn't require resources */
- ms_info("Failed to found corresonding node [%s] inside streamer", GST_ELEMENT_NAME(element));
+ /* If we fail to find corresponding node inside streamer
+ then apparently this element doesn't require resources */
+ ms_info("Failed to find corresponding node [%s] inside streamer", GST_ELEMENT_NAME(element));
g_value_set_boolean(ret, TRUE);
g_object_unref(element);
return TRUE;
streamer = (media_streamer_s *) node->parent_streamer;
ms_info("Received policy_changed_cb from node [%s]", node->name);
- /* Here we perform action to release resources relases that
- were previoursly acquired. Basically what we need to do is
+ /* Here we perform action to release resources that
+ were previously acquired. Basically, what we need to do is
to unprepare media streamer.*/
g_mutex_lock(&streamer->mutex_lock);
streamer->is_interrupted = TRUE;