<commit_before>/* GStreamer
 * Copyright (C) 1999,2000,2001,2002 <NAME> <<EMAIL>>
 *                    2000,2001,2002 <NAME> <<EMAIL>>
 *                              2002 <NAME> <<EMAIL>>
 *								2003 <NAME> <<EMAIL>>
 *
 * play.c: GstPlay object code
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include "play.h"

enum {
	STREAM_END,
	INFORMATION,
	STATE_CHANGE,
	STREAM_LENGTH,
	TIME_TICK,
	HAVE_XID,
	HAVE_VIS_XID,
	HAVE_VIDEO_SIZE,
	LAST_SIGNAL,
	PIPELINE_ERROR,
};

/* this struct is used to decouple signals coming out of threaded pipelines */

typedef struct _GstPlaySignal    GstPlaySignal;

struct _GstPlaySignal
{
	gint signal_id;
	union {
		struct {
			gint width;
			gint height;
		} video_size;
		struct {
			gint xid;
		} video_xid;
		struct {
			GstElementState old_state;
			GstElementState new_state;
		} state;
		struct {
			GstObject* object;
			GParamSpec* param;
		} info;
		struct {
			GstElement* element;
			gchar* error;
		} error;<commit_msg>uh, maybe putting new signals before LAST_SIGNAL might help against memory corruption?<commit_after>/* GStreamer
 * Copyright (C) 1999,2000,2001,2002 <NAME> <<EMAIL>>
 *                    2000,2001,2002 <NAME> <<EMAIL>>
 *                              2002 <NAME> <<EMAIL>>
 *								2003 <NAME> <<EMAIL>>
 *
 * play.c: GstPlay object code
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include "play.h"

enum {
	STREAM_END,
	INFORMATION,
	STATE_CHANGE,
	STREAM_LENGTH,
	TIME_TICK,
	HAVE_XID,
	HAVE_VIS_XID,
	HAVE_VIDEO_SIZE,
	PIPELINE_ERROR,
	/* put additional signals before this comment */
	LAST_SIGNAL,
};

/* this struct is used to decouple signals coming out of threaded pipelines */

typedef struct _GstPlaySignal    GstPlaySignal;

struct _GstPlaySignal
{
	gint signal_id;
	union {
		struct {
			gint width;
			gint height;
		} video_size;
		struct {
			gint xid;
		} video_xid;
		struct {
			GstElementState old_state;
			GstElementState new_state;
		} state;
		struct {
			GstObject* object;
			GParamSpec* param;
		} info;
		struct {
			GstElement* element;
			gchar* error;
		} error;
{'fraction_non_alphanumeric': 0.07995398331895312, 'fraction_numerical': 0.029335634167385678, 'mean_word_length': 3.277982779827798, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '747801', 'n_tokens_mistral': 1228, 'n_tokens_neox': 1066, 'n_words': 412}