fs-sink: explicitely handle stream_begin notif
[babeltrace.git] / plugins / ctf / fs-sink / writer.c
index 56bab6e8f454670e8612127a5433466743bb9f71..e233a87da5ffa4d89da912a567fa57081b3dcea4 100644 (file)
@@ -191,6 +191,19 @@ enum bt_component_status handle_notification(
                }
                break;
        }
+       case BT_NOTIFICATION_TYPE_STREAM_BEGIN:
+       {
+               struct bt_ctf_stream *stream =
+                       bt_notification_stream_begin_get_stream(notification);
+
+               if (!stream) {
+                       ret = BT_COMPONENT_STATUS_ERROR;
+                       goto end;
+               }
+               ret = writer_stream_begin(writer_component, stream);
+               bt_put(stream);
+               break;
+       }
        case BT_NOTIFICATION_TYPE_STREAM_END:
        {
                struct bt_ctf_stream *stream =
@@ -223,6 +236,7 @@ void writer_component_port_connected(
                BT_NOTIFICATION_TYPE_EVENT,
                BT_NOTIFICATION_TYPE_PACKET_BEGIN,
                BT_NOTIFICATION_TYPE_PACKET_END,
+               BT_NOTIFICATION_TYPE_STREAM_BEGIN,
                BT_NOTIFICATION_TYPE_STREAM_END,
                BT_NOTIFICATION_TYPE_SENTINEL,
        };
This page took 0.022812 seconds and 4 git commands to generate.