urisourcebin: Set removed flag when removing buffering msg
authorJan Schmidt <jan@centricular.com>
Mon, 27 Mar 2017 11:59:17 +0000 (22:59 +1100)
committerJan Schmidt <jan@centricular.com>
Mon, 27 Mar 2017 12:00:34 +0000 (23:00 +1100)
Forgot to set the flag, resulting in a missed check for
sending 100% in some cases. Spotted by Coverity.

CID: 1403263

gst/playback/gsturisourcebin.c

index 566b758..4a4c1b7 100644 (file)
@@ -2569,6 +2569,7 @@ remove_buffering_msgs (GstURISourceBin * urisrc, GstObject * src)
       gst_message_unref (bufstats);
       urisrc->buffering_status =
           g_list_delete_link (urisrc->buffering_status, iter);
+      removed = TRUE;
       break;
     }
     iter = g_list_next (iter);