multifilesrc: fix regression with starting from index set via index property
authorTim-Philipp Müller <tim@centricular.com>
Thu, 13 Aug 2015 16:29:58 +0000 (17:29 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 18 Aug 2015 12:17:34 +0000 (13:17 +0100)
commit29afa758589620f4572ca2f1bbbac073318df071
tree99a9c503244f8fb7d600937d5cdc3715b3e4f35a
parent5d99d0dfa0a2b7fdedb26cc02de6c5dc74f09ddd
multifilesrc: fix regression with starting from index set via index property

When we haven't started yet, set the start_index when we set the index property,
so that we start at the right index position after the initial seek. The index
property was never really meant to be for writing, but it used to work, so let's
support it for backwards compatibility.

https://bugzilla.gnome.org/show_bug.cgi?id=739472
gst/multifile/gstmultifilesrc.c