gst_message_unref (message);
#ifdef TIZEN_FEATURE_RTSP_MODIFICATION
- if (rtpbin->use_rtsp_buffering &&
- rtpbin->buffer_mode == RTP_JITTER_BUFFER_MODE_SLAVE) {
- if (update_buffering_status == FALSE)
+ GST_RTP_BIN_LOCK (rtpbin);
+ if (rtpbin->use_rtsp_buffering &&
+ rtpbin->buffer_mode == RTP_JITTER_BUFFER_MODE_SLAVE) {
+ if (update_buffering_status == FALSE) {
+ GST_RTP_BIN_UNLOCK (rtpbin);
break;
+ }
if (buffering_flag) {
min_percent = 100;
GST_DEBUG_OBJECT (bin, "forcefully change min_percent to 100!!!");
}
}
+ GST_RTP_BIN_UNLOCK (rtpbin);
#endif
/* make a new buffering message with the min value */
message =
buffering_left);
#ifdef TIZEN_FEATURE_RTSP_MODIFICATION
+ GST_RTP_BIN_LOCK (rtpbin);
if (rtpbin->use_rtsp_buffering &&
- rtpbin->buffer_mode == RTP_JITTER_BUFFER_MODE_SLAVE)
+ rtpbin->buffer_mode == RTP_JITTER_BUFFER_MODE_SLAVE) {
+ GST_RTP_BIN_UNLOCK (rtpbin);
goto slave_buffering;
+ }
+ GST_RTP_BIN_UNLOCK (rtpbin);
#endif
if (G_UNLIKELY (change)) {
GstClock *clock;