gchar *mux;
gulong video_cb_probe_id;
gulong audio_cb_probe_id;
- guint progrss_event_id;
+ guint progress_event_id;
const gchar *mime;
gchar format[sizeof(GST_VIDEO_FORMATS_ALL)];
gint in_width;
debug_log("g_source_remove (video_cb_probe_id)");
}
- if (handle->property->progrss_event_id) {
- g_source_remove(handle->property->progrss_event_id);
- handle->property->progrss_event_id = 0;
- debug_log("g_source_remove (progrss_event_id)");
+ if (handle->property->progress_event_id) {
+ g_source_remove(handle->property->progress_event_id);
+ handle->property->progress_event_id = 0;
+ debug_log("g_source_remove (progress_event_id)");
}
if (handle->encodebin->audio_event_probe_id) {
handle->property->is_busy = FALSE;
handle->property->audio_cb_probe_id = 0;
handle->property->video_cb_probe_id = 0;
- handle->property->progrss_event_id = 0;
+ handle->property->progress_event_id = 0;
handle->property->seek_idx = 0;
return ret;
debug_log("[SEEK: %d] width: %d height: %d start_pos: %d duration: %d (%d) seek_mode: %d outputfile: %s", handle->param->seeking, handle->param->resolution_width, handle->param->resolution_height, handle->param->start_pos, handle->param->duration, handle->property->end_pos, handle->param->seek_mode, handle->param->outputfile);
- handle->property->progrss_event_id = g_timeout_add(LAZY_PAUSE_TIMEOUT_MSEC, (GSourceFunc) _mm_cb_print_position, handle);
- debug_log("Timer (id=[%d], timeout=[%d ms])\n", handle->property->progrss_event_id, LAZY_PAUSE_TIMEOUT_MSEC);
+ if (!handle->property->progress_event_id) {
+ handle->property->progress_event_id = g_timeout_add(LAZY_PAUSE_TIMEOUT_MSEC, (GSourceFunc) _mm_cb_print_position, handle);
+ debug_log("Timer (id=[%d], timeout=[%d ms])\n", handle->property->progress_event_id, LAZY_PAUSE_TIMEOUT_MSEC);
+ }
return ret;
}