diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2012-07-29 18:31:37 +0200 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-09-10 19:32:08 -0400 |
commit | 47e9330fdfe77be3df5b13b1110c16c331485747 (patch) | |
tree | 8af1485d92ad15ab6fa911f1a1669a0cd55da463 /gst/gstnicesrc.c | |
parent | 242b113f9d7196d7422027494d8b471ebb50aa87 (diff) | |
download | libnice-47e9330fdfe77be3df5b13b1110c16c331485747.tar.gz |
GST_FLOW_WRONG_STATE -> GST_FLOW_FLUSHING
Diffstat (limited to 'gst/gstnicesrc.c')
-rw-r--r-- | gst/gstnicesrc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/gstnicesrc.c b/gst/gstnicesrc.c index d879d01..0278a87 100644 --- a/gst/gstnicesrc.c +++ b/gst/gstnicesrc.c @@ -195,7 +195,7 @@ gst_nice_src_read_callback (NiceAgent *agent, GST_LOG_OBJECT (agent, "Got buffer, getting out of the main loop"); - buffer = gst_buffer_new_allocate (NULL, len, 1); + buffer = gst_buffer_new_allocate (NULL, len, NULL); gst_buffer_map (buffer, &info, GST_MAP_WRITE); memcpy (info.data, buf, len); gst_buffer_unmap (buffer, &info); @@ -273,7 +273,7 @@ gst_nice_src_create ( GST_OBJECT_LOCK (basesrc); if (nicesrc->unlocked) { GST_OBJECT_UNLOCK (basesrc); - return GST_FLOW_WRONG_STATE; + return GST_FLOW_FLUSHING; } GST_OBJECT_UNLOCK (basesrc); @@ -286,7 +286,7 @@ gst_nice_src_create ( return GST_FLOW_OK; } else { GST_LOG_OBJECT (nicesrc, "Got interrupting, returning wrong-state"); - return GST_FLOW_WRONG_STATE; + return GST_FLOW_FLUSHING; } } |