Fix a bug that made it sometimes impossible to seek a track

This commit is contained in:
David Sansome 2011-03-07 20:00:03 +00:00
parent 961a97659e
commit 6a64b8f8f3
1 changed files with 5 additions and 0 deletions

View File

@ -389,6 +389,11 @@ QString GstEnginePipeline::ParseTag(GstTagList* list, const char* tag) const {
}
void GstEnginePipeline::StateChangedMessageReceived(GstMessage* msg) {
if (msg->src != GST_OBJECT(pipeline_)) {
// We only care about state changes of the whole pipeline.
return;
}
GstState old_state, new_state, pending;
gst_message_parse_state_changed(msg, &old_state, &new_state, &pending);