Gallery2: Handled seek to previous frame in case of video trim

In case of video trim, if seeking pointed to a previous I frame
ealier than the trim start time, then the logic would enter an
infinite loop, calling seek continuously. Added appropriate
check to handle seek to previous I frame condition.

Change-Id: I07ca4b60eeb1f87175dffcac59da8a29901034d1