diff options
Diffstat (limited to 'src/lib.h')
-rw-r--r-- | src/lib.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -30,6 +30,13 @@ typedef struct _TranscodeServerCtx TranscodeServerCtx; typedef struct _TranscodeClientCtx TranscodeClientCtx; +enum stp_stream_status { + STP_STATUS_NONE, + STP_STATUS_STREAMING, + STP_STATUS_FLUSHING, + STP_STATUS_FINISHED, +}; + struct _TranscodeServerCtx { SoupMessage *msg; GstElement *pipeline; @@ -41,7 +48,7 @@ struct _TranscodeServerCtx { * we need to set the PUT response on EOS/ERROR on the pipeline, * and whether to reject further data when using a persistent * Content-Length + Content-Range PUT stream. */ - gboolean stream_finished; + enum stp_stream_status status; guint seconds_since_read; /* List of client contexts */ @@ -72,6 +79,9 @@ struct _TranscodeClientCtx { #define stp_print_status(...) do {} while (0) #endif +gboolean invoke_g_hash_table_remove (TranscodeServerCtx *ctx); +gboolean invoke_g_free_client_context (TranscodeClientCtx *ctx); + void stp_cleanup_transcode_server_ctx (TranscodeServerCtx *ctx); void stp_cleanup_transcode_client_ctx (TranscodeClientCtx *ctx); |