@@ -106,15 +106,15 @@ defmodule Membrane.Pipeline do
106
106
By default, it converts the `opts` to a map if they're a struct and sets them as the pipeline state.
107
107
"""
108
108
@ callback handle_init ( context :: CallbackContext . t ( ) , options :: pipeline_options ) ::
109
- callback_return ( )
109
+ { [ Action . common_actions ( ) ] , state ( ) }
110
110
111
111
@ doc """
112
112
Callback invoked when pipeline is requested to terminate with `terminate/2`.
113
113
114
114
By default, it returns `t:Membrane.Pipeline.Action.terminate/0` with reason `:normal`.
115
115
"""
116
116
@ callback handle_terminate_request ( context :: CallbackContext . t ( ) , state ) ::
117
- callback_return ( )
117
+ { [ Action . common_actions ( ) ] , state ( ) }
118
118
119
119
@ doc """
120
120
Callback invoked on pipeline startup, right after `c:handle_init/2`.
@@ -126,7 +126,7 @@ defmodule Membrane.Pipeline do
126
126
context :: CallbackContext . t ( ) ,
127
127
state
128
128
) ::
129
- callback_return
129
+ { [ Action . common_actions ( ) ] , state ( ) }
130
130
131
131
@ doc """
132
132
Callback invoked when pipeline switches the playback to `:playing`.
@@ -136,7 +136,7 @@ defmodule Membrane.Pipeline do
136
136
context :: CallbackContext . t ( ) ,
137
137
state
138
138
) ::
139
- callback_return
139
+ { [ Action . common_actions ( ) ] , state ( ) }
140
140
141
141
@ doc """
142
142
Callback invoked when a child removes its pad.
@@ -151,7 +151,7 @@ defmodule Membrane.Pipeline do
151
151
pad :: Pad . ref ( ) ,
152
152
context :: CallbackContext . t ( ) ,
153
153
state :: state
154
- ) :: callback_return
154
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
155
155
156
156
@ doc """
157
157
Callback invoked when a notification comes in from a child.
@@ -163,7 +163,7 @@ defmodule Membrane.Pipeline do
163
163
element :: Child . name ( ) ,
164
164
context :: CallbackContext . t ( ) ,
165
165
state
166
- ) :: callback_return
166
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
167
167
168
168
@ doc """
169
169
Callback invoked when pipeline receives a message that is not recognized
@@ -177,7 +177,7 @@ defmodule Membrane.Pipeline do
177
177
context :: CallbackContext . t ( ) ,
178
178
state
179
179
) ::
180
- callback_return
180
+ { [ Action . common_actions ( ) ] , state ( ) }
181
181
182
182
@ doc """
183
183
Callback invoked when a child element starts processing stream via given pad.
@@ -189,7 +189,7 @@ defmodule Membrane.Pipeline do
189
189
pad :: Pad . ref ( ) ,
190
190
context :: CallbackContext . t ( ) ,
191
191
state
192
- ) :: callback_return
192
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
193
193
194
194
@ doc """
195
195
Callback invoked when a child element finishes processing stream via given pad.
@@ -201,7 +201,7 @@ defmodule Membrane.Pipeline do
201
201
pad :: Pad . ref ( ) ,
202
202
context :: CallbackContext . t ( ) ,
203
203
state
204
- ) :: callback_return
204
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
205
205
206
206
@ doc """
207
207
Callback invoked when children of `Membrane.ChildrenSpec` are started.
@@ -212,7 +212,7 @@ defmodule Membrane.Pipeline do
212
212
children :: [ Child . name ( ) ] ,
213
213
context :: CallbackContext . t ( ) ,
214
214
state
215
- ) :: callback_return
215
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
216
216
217
217
@ doc """
218
218
Callback invoked upon each timer tick. A timer can be started with `Membrane.Pipeline.Action.start_timer`
@@ -222,7 +222,7 @@ defmodule Membrane.Pipeline do
222
222
timer_id :: any ,
223
223
context :: CallbackContext . t ( ) ,
224
224
state
225
- ) :: callback_return
225
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
226
226
227
227
@ doc """
228
228
Callback invoked when crash of the crash group happens.
@@ -234,7 +234,7 @@ defmodule Membrane.Pipeline do
234
234
group_name :: Child . group ( ) ,
235
235
context :: CallbackContext . t ( ) ,
236
236
state
237
- ) :: callback_return
237
+ ) :: { [ Action . common_actions ( ) ] , state ( ) }
238
238
239
239
@ doc """
240
240
Callback invoked when pipeline is called using a synchronous call.
@@ -247,7 +247,7 @@ defmodule Membrane.Pipeline do
247
247
context :: CallbackContext . t ( ) ,
248
248
state
249
249
) ::
250
- callback_return
250
+ { [ Action . common_actions ( ) | Action . reply ( ) ] , state ( ) }
251
251
252
252
@ optional_callbacks handle_init: 2 ,
253
253
handle_setup: 2 ,
0 commit comments