const GstSegment *s;
#ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION
- if (!SUBPARSE_SEEK_TRYLOCK (self)) {
- /* new seeking request is in process */
- GST_WARNING_OBJECT (self, "ignore the old newsegment event");
- ret = TRUE;
- gst_event_unref (event);
- break;
+ if (self->first_buffer) {
+ if (!SUBPARSE_SEEK_TRYLOCK (self)) {
+ /* new seeking request is in process */
+ GST_WARNING_OBJECT (self, "ignore the old newsegment event");
+ ret = TRUE;
+ gst_event_unref (event);
+ break;
+ }
+ } else {
+ SUBPARSE_SEEK_LOCK (self);
}
#endif