Copy the packet_header in the plugins
[babeltrace.git] / plugins / ctf / fs-sink / write.c
index 51bd7208a9cb768aa4db8cdd4b50f0f4f167c625..dd380f5b667cd062f9c28a53cede8e360398f553 100644 (file)
@@ -673,7 +673,14 @@ enum bt_component_status writer_new_packet(
                                __func__, __FILE__, __LINE__);
                goto error;
        }
-       BT_PUT(writer_stream);
+
+       ret = ctf_stream_copy_packet_header(writer_component->err,
+                       packet, writer_stream);
+       if (ret != 0) {
+               fprintf(writer_component->err, "[error] %s in %s:%d\n",
+                               __func__, __FILE__, __LINE__);
+               goto error;
+       }
 
        goto end;
 
This page took 0.023111 seconds and 4 git commands to generate.