mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 16:51:10 +00:00
videoaggregator: fix broken locking in update_src_caps function
We would unlock an already-unlocked mutex that we never re-locked. https://bugzilla.gnome.org/show_bug.cgi?id=732750
This commit is contained in:
parent
551122c19a
commit
341dc8aecf
1 changed files with 5 additions and 1 deletions
|
@ -555,7 +555,6 @@ gst_videoaggregator_update_src_caps (GstVideoAggregator * vagg)
|
|||
best_fps_d = fps_d;
|
||||
}
|
||||
}
|
||||
GST_OBJECT_UNLOCK (vagg);
|
||||
|
||||
if (best_fps_n <= 0 || best_fps_d <= 0 || best_fps == 0.0) {
|
||||
best_fps_n = 25;
|
||||
|
@ -583,6 +582,8 @@ gst_videoaggregator_update_src_caps (GstVideoAggregator * vagg)
|
|||
info.par_n = GST_VIDEO_INFO_PAR_N (&vagg->info);
|
||||
info.par_d = GST_VIDEO_INFO_PAR_D (&vagg->info);
|
||||
|
||||
GST_OBJECT_UNLOCK (vagg);
|
||||
|
||||
if (vagg_klass->update_info) {
|
||||
if (!vagg_klass->update_info (vagg, &info)) {
|
||||
ret = FALSE;
|
||||
|
@ -594,6 +595,9 @@ gst_videoaggregator_update_src_caps (GstVideoAggregator * vagg)
|
|||
caps = gst_video_info_to_caps (&info);
|
||||
|
||||
peercaps = gst_pad_peer_query_caps (agg->srcpad, NULL);
|
||||
|
||||
GST_OBJECT_LOCK (vagg);
|
||||
|
||||
if (peercaps) {
|
||||
GstCaps *tmp;
|
||||
|
||||
|
|
Loading…
Reference in a new issue