summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 894760b)
raw | patch | inline | side by side (parent: 894760b)
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Tue, 19 Apr 2011 14:24:03 +0000 (15:24 +0100) | ||
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | |
Tue, 19 Apr 2011 16:11:14 +0000 (17:11 +0100) |
ext/mpeg2dec/gstmpeg2dec.c | patch | blob | history |
index 5867462e55dc06cc5f9ba5a5c646e5747f605ee0..3f7474611fe323583b2407bc1eb0a4f4452923d8 100644 (file)
mpeg2dec->index_id = 0;
if (index) {
mpeg2dec->index = gst_object_ref (index);
- gst_index_get_writer_id (index, GST_OBJECT (element), &mpeg2dec->index_id);
}
-
GST_OBJECT_UNLOCK (mpeg2dec);
+ /* object lock might be taken again */
+ if (index)
+ gst_index_get_writer_id (index, GST_OBJECT (element), &mpeg2dec->index_id);
}
static GstIndex *