mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
rtmpsink: handle RTMP_Write() return value correctly
Error might also be negative (-1). Unclear if 0 should be fatal as well though. https://bugzilla.gnome.org/show_bug.cgi?id=681111 https://bugzilla.gnome.org/show_bug.cgi?id=686009
This commit is contained in:
parent
65add5533a
commit
6d0d209a28
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ gst_rtmp_sink_render (GstBaseSink * bsink, GstBuffer * buf)
|
|||
|
||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||
|
||||
if (!RTMP_Write (sink->rtmp, (char *) map.data, map.size))
|
||||
if (RTMP_Write (sink->rtmp, (char *) map.data, map.size) <= 0)
|
||||
goto write_failed;
|
||||
|
||||
gst_buffer_unmap (buf, &map);
|
||||
|
|
Loading…
Reference in a new issue