structure: fix for api upate

This commit is contained in:
Wim Taymans 2011-10-29 09:11:53 +02:00
parent 02250601cf
commit 431bbdcbf5
2 changed files with 9 additions and 4 deletions

View file

@ -621,8 +621,8 @@ gst_ffmpegdemux_perform_seek (GstFFMpegDemux * demux, GstEvent * event)
}
/* now send the newsegment, FIXME, do this from the streaming thread */
GST_DEBUG_OBJECT (demux, "Sending newsegment from %" G_GINT64_FORMAT
" to %" G_GINT64_FORMAT, demux->segment.position, demux->segment.stop);
GST_DEBUG_OBJECT (demux, "Sending newsegment %" GST_SEGMENT_FORMAT,
&demux->segment);
gst_ffmpegdemux_push_event (demux, gst_event_new_segment (&demux->segment));
}
@ -1204,6 +1204,8 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux)
gst_ffmpegdemux_perform_seek (demux, event);
gst_event_unref (event);
} else {
GST_DEBUG_OBJECT (demux, "Sending segment %" GST_SEGMENT_FORMAT,
&demux->segment);
gst_ffmpegdemux_push_event (demux, gst_event_new_segment (&demux->segment));
}
@ -1371,8 +1373,10 @@ gst_ffmpegdemux_loop (GstFFMpegDemux * demux)
pkt.stream_index, pkt.flags, GST_TIME_ARGS (duration), (gint64) pkt.pos);
/* check start_time */
#if 0
if (demux->start_time != -1 && demux->start_time > timestamp)
goto drop;
#endif
if (GST_CLOCK_TIME_IS_VALID (timestamp))
timestamp -= demux->start_time;
@ -1974,7 +1978,8 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
rank = GST_RANK_MARGINAL;
else {
GST_DEBUG ("ignoring %s", in_plugin->name);
goto next;
rank = GST_RANK_MARGINAL;
//goto next;
}
p = name = g_strdup (in_plugin->name);

View file

@ -346,7 +346,7 @@ gst_ffmpegenc_get_possible_sizes (GstFFMpegEnc * ffmpegenc, GstPad * pad,
width = gst_structure_get_value (s, "width");
framerate = gst_structure_get_value (s, "framerate");
tmps = gst_structure_empty_new ("video/x-raw");
tmps = gst_structure_new_empty ("video/x-raw");
if (width)
gst_structure_set_value (tmps, "width", width);
if (height)