mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
Convert GstSrc's to GstElements.
Original commit message from CVS: Convert GstSrc's to GstElements.
This commit is contained in:
parent
2d22da4e0b
commit
1ad129fd31
14 changed files with 24 additions and 32 deletions
2
test/a.c
2
test/a.c
|
@ -1,6 +1,6 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eof, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ int fd;
|
|||
char *outfile;
|
||||
GstElement *mux;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -123,8 +123,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse, *fdsink;
|
||||
GstElement *pipeline, *src, *parse, *fdsink;
|
||||
GstElementFactory *fdsinkfactory;
|
||||
|
||||
g_print("have %d args\n",argc);
|
||||
|
|
|
@ -9,7 +9,7 @@ GstElement *show, *play;
|
|||
GstElement *audio_thread, *video_thread;
|
||||
GstElement *audio_queue, *video_queue;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -59,8 +59,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse;
|
||||
GstElement *pipeline, *src, *parse;
|
||||
|
||||
g_print("have %d args\n",argc);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
extern gboolean _gst_plugin_spew;
|
||||
gboolean idle_func(gpointer data);
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -129,8 +129,7 @@ void new_pad_created(GstElement *parse,GstPad *pad,GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse;
|
||||
GstElement *pipeline, *src, *parse;
|
||||
|
||||
g_print("have %d args\n",argc);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
int fd;
|
||||
char *outfile;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -170,8 +170,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse, *out;
|
||||
GstElement *pipeline, *src, *parse, *out;
|
||||
GstPad *infopad;
|
||||
int i,c;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
GstElement *mux;
|
||||
GstElement *merge_subtitles;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -229,8 +229,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse;
|
||||
GstElement *pipeline, *src, *parse;
|
||||
GstElement *fdsink;
|
||||
GstElementFactory *fdsinkfactory;
|
||||
int fd;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
GstElement *mux;
|
||||
GstElement *merge_subtitles;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -215,8 +215,7 @@ void mp2tomp1(GstElement *parser,GstPad *pad, GstElement *pipeline) {
|
|||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElement *src, *parse;
|
||||
GstElement *pipeline, *src, *parse;
|
||||
GstElement *fdsink;
|
||||
GstElementFactory *fdsinkfactory;
|
||||
int fd;
|
||||
|
|
|
@ -5,7 +5,7 @@ extern gboolean _gst_plugin_spew;
|
|||
|
||||
static gboolean playing = TRUE;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
DEBUG("have EOF\n");
|
||||
playing = FALSE;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
extern gboolean _gst_plugin_spew;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eof, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ int main(int argc,char *argv[]) {
|
|||
// gst_plugin_load("mp3parse");
|
||||
gst_plugin_load_all();
|
||||
|
||||
pipeline = gst_pipeline_new("pipeline");
|
||||
pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
|
||||
g_return_val_if_fail(pipeline != NULL, -1);
|
||||
|
||||
srcfactory = gst_elementfactory_find("disksrc");
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eof, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElementFactory *srcfactory, *parsefactory, *decodefactory, *playfactory;
|
||||
GstElement *src, *parse, *decode, *play;
|
||||
GstElement *pipeline, *src, *parse, *decode, *play;
|
||||
GstPad *infopad;
|
||||
|
||||
g_print("have %d args\n",argc);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eof, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <gnome.h>
|
||||
#include <gst/gst.h>
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eos, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
@ -185,7 +185,7 @@ int main(int argc,char *argv[]) {
|
|||
gst_plugin_load("mpeg2parse");
|
||||
//gst_plugin_load("mpeg1parse");
|
||||
|
||||
pipeline = gst_pipeline_new("pipeline");
|
||||
pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
|
||||
g_return_val_if_fail(pipeline != NULL, -1);
|
||||
|
||||
if (strstr(argv[1],"video_ts")) {
|
||||
|
|
|
@ -5,15 +5,14 @@
|
|||
#include <gst/gst.h>
|
||||
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
g_print("have eof, quitting\n");
|
||||
exit(0);
|
||||
}
|
||||
|
||||
int main(int argc,char *argv[]) {
|
||||
GstPipeline *pipeline;
|
||||
GstElementFactory *srcfactory, *pipefactory, *sinkfactory;
|
||||
GstElement *src, *pipe, *sink;
|
||||
GstElement *pipeline, *src, *pipe, *sink;
|
||||
int fd;
|
||||
|
||||
g_print("have %d args\n",argc);
|
||||
|
|
|
@ -9,7 +9,7 @@ extern gboolean _gst_plugin_spew;
|
|||
don't screw around with state unexpectedly */
|
||||
static gboolean playing = TRUE;
|
||||
|
||||
void eof(GstSrc *src) {
|
||||
void eof(GstElement *src) {
|
||||
DEBUG("have EOF\n");
|
||||
playing = FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue