notification_type_e notification_type_e);
/**
- * @brief Gets srting from console.
+ * @brief Gets string from console.
*
* @since_tizen 3.0
* @param [in] prompt The prompt before getting string value
*
* @since_tizen 3.0
* @param [in] prompt The prompt before getting unsigned integer value
- * @param [in] max_size The thresold for maximum possible value
+ * @param [in] max_size The threshold for maximum possible value
* @param [out] size The output unsigned integer which was got from console
* @return @c 0 on success, otherwise a negative error value
*/
*
* @since_tizen 3.0
* @param [in] prompt The prompt before getting integer value
- * @param [in] min_value The thresold for minimum possible value
- * @param [in] max_value The thresold for maximum possible value
+ * @param [in] min_value The threshold for minimum possible value
+ * @param [in] max_value The threshold for maximum possible value
* @param [out] value The output integer which was got from console
* @return @c 0 on success, otherwise a negative error value
*/
*
* @since_tizen 3.0
* @param [in] prompt The prompt before getting double value
- * @param [in] min_value The thresold for minimum possible value
- * @param [in] max_value The thresold for maximum possible value
+ * @param [in] min_value The threshold for minimum possible value
+ * @param [in] max_value The threshold for maximum possible value
* @param [out] value The output double which was got from console
* @return @c 0 on success, otherwise a negative error value
*/
*
* @since_tizen 3.0
* @param [in] path_to_image The path to JPEG image which will be loaded
- * @param [in/out] source The hadler to media source which will be filled
+ * @param [in/out] source The handler to media source which will be filled
* @return @c 0 on success, otherwise a negative error value
*/
int load_mv_source_from_file(
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
+#include <gst/app/gstappsrc.h>
#include <gst/video/video.h>
#include <pthread.h>
return err;
}
- *reader = (mv_video_reader_s *) handle;
+ *reader = (mv_video_reader_h *) handle;
return err;
}
return err;
}
- *writer = (mv_video_writer_s *) handle;
+ *writer = (mv_video_writer_h *) handle;
return err;
}
gst_buffer_unmap(buffer, &info);
if (GST_FLOW_OK !=
- gst_app_src_push_buffer(handle->appsrc, buffer)) {
+ gst_app_src_push_buffer((GstAppSrc*)(handle->appsrc), buffer)) {
LOGE("Failed to push buffer to appsrc");
return MEDIA_VISION_ERROR_INVALID_OPERATION;
}
writer->videoconvert = gst_element_factory_make("videoconvert", "videoconvert");
writer->encoder = gst_element_factory_make("avenc_mpeg4", "encoder");
writer->queue = gst_element_factory_make("queue", "queue");
- writer->muxer = gst_element_factory_make("avmux_avi", "muxer");
+ writer->muxer = gst_element_factory_make("avimux", "muxer");
writer->filesink = gst_element_factory_make("filesink", "filesink");
if ((!writer->pl) ||
return MEDIA_VISION_ERROR_INVALID_OPERATION;
}
+ writer->buffer_size = vinfo.size;
+
g_object_set(G_OBJECT(writer->appsrc),
"max-bytes", 0,
"blocksize", writer->buffer_size,
"stream-type", 0,
"format", GST_FORMAT_BYTES,
+ "do-timestamp", true,
+ "is-live", true,
NULL);
- writer->buffer_size = vinfo.size;
-
/* link appsrc and capsfilter */
if ((!gst_element_link_filtered(writer->appsrc,
writer->capsfilter,
pthread_spin_unlock(&(handle->eos_cb_guard));
-
gst_pad_remove_probe(gst_element_get_static_pad(handle->queue, "src"), handle->pad_probe_id);
}