Changeset 108 for fm_server/trunk/src/fm_input_gst/fm_input_gst.c
- Timestamp:
- 09/02/06 15:26:58 (6 years ago)
- Files:
-
- 1 modified
-
fm_server/trunk/src/fm_input_gst/fm_input_gst.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fm_server/trunk/src/fm_input_gst/fm_input_gst.c
r107 r108 412 412 413 413 414 static void 415 fm_input_gst_send_position (FmInputGst *input_gst) 416 { 417 FmInputGstCommon *common = input_gst->common; 418 FmChunk *chk = common->read_chunk; 419 //g_print ("tick!\n"); 420 421 GValue *pos_val = g_value_init_int64 (input_gst->current_pos_samples * common->nsec_for_sample); 422 GValue *dur_val = g_value_init_int64 (chk->duration_nsec); 423 rgc_signal_emit (input_gst, "tick", pos_val, dur_val, NULL); 424 g_value_destroy (pos_val); 425 g_value_destroy (dur_val); 426 } 427 414 428 415 429 … … 429 443 input_gst->current_pos_samples = chk->start_offset_samples; 430 444 g_print("skipping... new position = %lld\n", input_gst->current_pos_samples); 445 446 fm_input_gst_send_position (input_gst); 431 447 432 448 if (old_chk) … … 506 522 return; 507 523 else if (input_gst->buffers_without_tick == TICK_EVERY_N_BUFFERS) { 508 //g_print ("tick!\n"); 509 GValue *pos_val = g_value_init_int64 (input_gst->current_pos_samples * common->nsec_for_sample); 510 GValue *dur_val = g_value_init_int64 (chk->duration_nsec); 511 rgc_signal_emit (input_gst, "tick", pos_val, dur_val, NULL); 512 g_value_destroy (pos_val); 513 g_value_destroy (dur_val); 524 fm_input_gst_send_position (input_gst); 514 525 515 526 input_gst->buffers_without_tick = 0;
