Changeset 109 for fm_server/trunk/src/fm_input_gst/gstfmsink.c
- Timestamp:
- 09/02/06 23:16:15 (6 years ago)
- Files:
-
- 1 modified
-
fm_server/trunk/src/fm_input_gst/gstfmsink.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fm_server/trunk/src/fm_input_gst/gstfmsink.c
r108 r109 295 295 FmInputGstCommon *common = sink->common; 296 296 297 gst_element_seek(common->sink, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH & GST_SEEK_FLAG_ACCURATE, 297 gboolean ret; 298 ret = gst_element_seek(common->sink, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH & GST_SEEK_FLAG_ACCURATE, 298 299 GST_SEEK_TYPE_SET, common->seek_nsec, 299 GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);300 GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE); 300 301 301 sink->seek_completed = TRUE; 302 g_print(" trying to seek to %lld ns...\n", common->seek_nsec); 302 if (ret) { 303 sink->seek_completed = TRUE; 304 g_print(" trying to seek to %lld ns...\n", common->seek_nsec); 305 } else { 306 sink->seek_in_progress = FALSE; 307 sink->seek_target = -1; 308 g_print(" seek to %lld ns failed!\n", common->seek_nsec); 309 } 303 310 304 311 return FALSE;
