Show
Ignore:
Timestamp:
09/02/06 23:16:15 (6 years ago)
Author:
ath
Message:

End-of-file and misc fixes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • fm_server/trunk/src/fm_input_gst/gstfmsink.c

    r108 r109  
    295295        FmInputGstCommon *common = sink->common; 
    296296 
    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, 
    298299                                         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); 
    300301         
    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        } 
    303310 
    304311        return FALSE;